Documentation
¶
Index ¶
- Constants
- type Key
- func (k Key) CamelCase() string
- func (k Key) CamelCaseAcronym() string
- func (k Key) DotCase() string
- func (k Key) DotCaseAcronym() string
- func (k Key) KebabCase() string
- func (k Key) KebabCaseAcronym() string
- func (k Key) MergeCase() string
- func (k Key) MergeCaseAcronym() string
- func (k Key) PascalCase() string
- func (k Key) PascalCaseAcronym() string
- func (k Key) SnakeCase() string
- func (k Key) SnakeCaseAcronym() string
- func (k Key) String() string
- type Meta
- type Property
- type Type
- func (t Type) Doc() string
- func (t Type) IsArray() bool
- func (t Type) IsArrayObject() bool
- func (t Type) IsBool() bool
- func (t Type) IsDate() bool
- func (t Type) IsDateTime() bool
- func (t Type) IsDuration() bool
- func (t Type) IsFloat() bool
- func (t Type) IsInt() bool
- func (t Type) IsNull() bool
- func (t Type) IsObject() bool
- func (t Type) IsString() bool
- func (t Type) IsTime() bool
- func (t Type) String() string
- type TypeFormatter
- type TypeFormatters
Constants ¶
View Source
const ( TypeNull = "null" TypeInt = "int" TypeString = "string" TypeBool = "bool" TypeFloat = "float" TypeObject = "object" TypeDate = "date" TypeTime = "time" TypeDateTime = TypeDate + TypeTime TypeDuration = "duration" TypeArray = "array" TypeArrayObject = "arrayObject" TypeArrayInt = "arrayInt" TypeArrayString = "arrayString" TypeArrayBool = "arrayBool" TypeArrayFloat = "arrayFloat" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key string
func (Key) CamelCaseAcronym ¶
CamelCaseAcronym ex. camelCaseID
func (Key) KebabCaseAcronym ¶
KebabCaseAcronym ex. kebab-case-ID
func (Key) MergeCaseAcronym ¶
MergeCaseAcronym ex. mergecaseID
func (Key) PascalCaseAcronym ¶
PascalCaseAcronym ex. PascalCaseID
func (Key) SnakeCaseAcronym ¶
SnakeCaseAcronym ex. snake_case_ID
type Type ¶
type Type struct { Formatters *TypeFormatters `json:"formatters"` Key Key `json:"key"` Value string `json:"value"` }
func (Type) IsArrayObject ¶
func (Type) IsDateTime ¶
func (Type) IsDuration ¶
type TypeFormatter ¶
type TypeFormatters ¶
type TypeFormatters struct { Type TypeFormatter Doc TypeFormatter }
Click to show internal directories.
Click to hide internal directories.