Documentation ¶
Index ¶
- func GenerateGoCode(input codespec.Resource) string
- type BoolAttrGenerator
- type CodeStatement
- func ElementTypeProperty(elementType codespec.ElemType) CodeStatement
- func GenerateSchemaAttributes(attrs codespec.Attributes) CodeStatement
- func GenerateTypedModels(attributes codespec.Attributes) CodeStatement
- func GroupCodeStatements(stmts []CodeStatement, grouping func([]string) string) CodeStatement
- type Float64AttrGenerator
- type Int64AttrGenerator
- type ListAttrGenerator
- type ListNestedAttrGenerator
- type MapAttrGenerator
- type MapNestedAttrGenerator
- type NumberAttrGenerator
- type SetAttrGenerator
- type SetNestedGenerator
- type SingleNestedAttrGenerator
- type StringAttrGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateGoCode ¶
Types ¶
type BoolAttrGenerator ¶
type BoolAttrGenerator struct {
// contains filtered or unexported fields
}
func (*BoolAttrGenerator) AttributeCode ¶
func (s *BoolAttrGenerator) AttributeCode() CodeStatement
type CodeStatement ¶
func ElementTypeProperty ¶
func ElementTypeProperty(elementType codespec.ElemType) CodeStatement
func GenerateSchemaAttributes ¶
func GenerateSchemaAttributes(attrs codespec.Attributes) CodeStatement
func GenerateTypedModels ¶
func GenerateTypedModels(attributes codespec.Attributes) CodeStatement
func GroupCodeStatements ¶
func GroupCodeStatements(stmts []CodeStatement, grouping func([]string) string) CodeStatement
type Float64AttrGenerator ¶
type Float64AttrGenerator struct {
// contains filtered or unexported fields
}
func (*Float64AttrGenerator) AttributeCode ¶
func (f *Float64AttrGenerator) AttributeCode() CodeStatement
type Int64AttrGenerator ¶
type Int64AttrGenerator struct {
// contains filtered or unexported fields
}
func (*Int64AttrGenerator) AttributeCode ¶
func (i *Int64AttrGenerator) AttributeCode() CodeStatement
type ListAttrGenerator ¶
type ListAttrGenerator struct {
// contains filtered or unexported fields
}
func (*ListAttrGenerator) AttributeCode ¶
func (l *ListAttrGenerator) AttributeCode() CodeStatement
type ListNestedAttrGenerator ¶
type ListNestedAttrGenerator struct {
// contains filtered or unexported fields
}
func (*ListNestedAttrGenerator) AttributeCode ¶
func (l *ListNestedAttrGenerator) AttributeCode() CodeStatement
type MapAttrGenerator ¶
type MapAttrGenerator struct {
// contains filtered or unexported fields
}
func (*MapAttrGenerator) AttributeCode ¶
func (m *MapAttrGenerator) AttributeCode() CodeStatement
type MapNestedAttrGenerator ¶
type MapNestedAttrGenerator struct {
// contains filtered or unexported fields
}
func (*MapNestedAttrGenerator) AttributeCode ¶
func (m *MapNestedAttrGenerator) AttributeCode() CodeStatement
type NumberAttrGenerator ¶
type NumberAttrGenerator struct {
// contains filtered or unexported fields
}
func (*NumberAttrGenerator) AttributeCode ¶
func (s *NumberAttrGenerator) AttributeCode() CodeStatement
type SetAttrGenerator ¶
type SetAttrGenerator struct {
// contains filtered or unexported fields
}
func (*SetAttrGenerator) AttributeCode ¶
func (s *SetAttrGenerator) AttributeCode() CodeStatement
type SetNestedGenerator ¶
type SetNestedGenerator struct {
// contains filtered or unexported fields
}
func (*SetNestedGenerator) AttributeCode ¶
func (l *SetNestedGenerator) AttributeCode() CodeStatement
type SingleNestedAttrGenerator ¶
type SingleNestedAttrGenerator struct {
// contains filtered or unexported fields
}
func (*SingleNestedAttrGenerator) AttributeCode ¶
func (l *SingleNestedAttrGenerator) AttributeCode() CodeStatement
type StringAttrGenerator ¶
type StringAttrGenerator struct {
// contains filtered or unexported fields
}
func (*StringAttrGenerator) AttributeCode ¶
func (s *StringAttrGenerator) AttributeCode() CodeStatement
Source Files ¶
Click to show internal directories.
Click to hide internal directories.