Documentation ¶
Index ¶
- func GenerateEnumCode(enumProperty *model.ResourceProperty) string
- func GenerateGoResourceCode(pkg string, resources []*model.Resource, path string, namespace string) error
- func GenerateInlineStructCode(resource *model.Resource, properties []*model.ResourceProperty) string
- func GenerateResourceCode(pkg string, resource *model.Resource) string
- func GenerateResourceDefCode(pkg string, resource *model.Resource) string
- func GenerateResourceMappingBodyCode(pkg string, resource *model.Resource, typeName string, ...) string
- func GenerateResourceMappingCode(pkg string, resource *model.Resource, resources []*model.Resource) string
- func GenerateResourceMappingHeaderCode(pkg string, resource *model.Resource, resources []*model.Resource) string
- func GenerateStructCode(pkg string, resource *model.Resource, name string, ...) string
- func GoName(name string) string
- func GoTypeRaw(prop *model.ResourceProperty) string
- func GoVarName(name string) string
- func HasPointer(prop *model.ResourceProperty, collectionItem bool) bool
- func NormalizePointer(prop *model.ResourceProperty, varName string, collectionItem bool, ...) string
- func PreparePropertyFromMapping(resource *model.Resource, property *model.ResourceProperty, ...) string
- func PropPureGoType(resource *model.Resource, prop *model.ResourceProperty, actualName string) string
- func PropertyTo(resource *model.Resource, property *model.ResourceProperty, ...) string
- func PropertyType(resource *model.Resource, prop *model.ResourceProperty) string
- func StreamGenerateEnumCode(qw422016 *qt422016.Writer, enumProperty *model.ResourceProperty)
- func StreamGenerateInlineStructCode(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func StreamGenerateResourceCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource)
- func StreamGenerateResourceDefCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource)
- func StreamGenerateResourceMappingBodyCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, ...)
- func StreamGenerateResourceMappingCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, ...)
- func StreamGenerateResourceMappingHeaderCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, ...)
- func StreamGenerateStructCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, name string, ...)
- func StreamGoName(qw422016 *qt422016.Writer, name string)
- func StreamGoTypeRaw(qw422016 *qt422016.Writer, prop *model.ResourceProperty)
- func StreamGoVarName(qw422016 *qt422016.Writer, name string)
- func StreamNormalizePointer(qw422016 *qt422016.Writer, prop *model.ResourceProperty, varName string, ...)
- func StreamPreparePropertyFromMapping(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func StreamPropPureGoType(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func StreamPropertyTo(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func StreamPropertyType(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func WriteGenerateEnumCode(qq422016 qtio422016.Writer, enumProperty *model.ResourceProperty)
- func WriteGenerateInlineStructCode(qq422016 qtio422016.Writer, resource *model.Resource, ...)
- func WriteGenerateResourceCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource)
- func WriteGenerateResourceDefCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource)
- func WriteGenerateResourceMappingBodyCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, ...)
- func WriteGenerateResourceMappingCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, ...)
- func WriteGenerateResourceMappingHeaderCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, ...)
- func WriteGenerateStructCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, name string, ...)
- func WritePreparePropertyFromMapping(qq422016 qtio422016.Writer, resource *model.Resource, ...)
- func WritePropertyTo(qq422016 qtio422016.Writer, resource *model.Resource, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEnumCode ¶
func GenerateEnumCode(enumProperty *model.ResourceProperty) string
func GenerateGoResourceCode ¶
func GenerateInlineStructCode ¶
func GenerateInlineStructCode(resource *model.Resource, properties []*model.ResourceProperty) string
func GenerateResourceDefCode ¶
func GenerateStructCode ¶
func GenerateStructCode(pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated) string
func GoTypeRaw ¶
func GoTypeRaw(prop *model.ResourceProperty) string
func HasPointer ¶
func HasPointer(prop *model.ResourceProperty, collectionItem bool) bool
func NormalizePointer ¶
func PropPureGoType ¶
func PropertyTo ¶
func PropertyType ¶
func PropertyType(resource *model.Resource, prop *model.ResourceProperty) string
func StreamGenerateEnumCode ¶
func StreamGenerateEnumCode(qw422016 *qt422016.Writer, enumProperty *model.ResourceProperty)
func StreamGenerateStructCode ¶
func StreamGenerateStructCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated)
func StreamGoName ¶
func StreamGoTypeRaw ¶
func StreamGoTypeRaw(qw422016 *qt422016.Writer, prop *model.ResourceProperty)
func StreamGoVarName ¶
func StreamNormalizePointer ¶
func StreamPropPureGoType ¶
func StreamPropertyTo ¶
func StreamPropertyType ¶
func WriteGenerateEnumCode ¶
func WriteGenerateEnumCode(qq422016 qtio422016.Writer, enumProperty *model.ResourceProperty)
func WriteGenerateInlineStructCode ¶
func WriteGenerateInlineStructCode(qq422016 qtio422016.Writer, resource *model.Resource, properties []*model.ResourceProperty)
func WriteGenerateResourceCode ¶
func WriteGenerateResourceCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource)
func WriteGenerateResourceDefCode ¶
func WriteGenerateResourceDefCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource)
func WriteGenerateResourceMappingBodyCode ¶
func WriteGenerateResourceMappingBodyCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)
func WriteGenerateStructCode ¶
func WriteGenerateStructCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated)
func WritePreparePropertyFromMapping ¶
func WritePreparePropertyFromMapping(qq422016 qtio422016.Writer, resource *model.Resource, property *model.ResourceProperty, valueVarName string, insideCollection bool)
func WritePropertyTo ¶
func WritePropertyTo(qq422016 qtio422016.Writer, resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.