Documentation ¶
Index ¶
- func GenerateAnnotationsDef(annotations map[string]string) string
- func GenerateEnumCode(enumProperty *model.ResourceProperty) string
- func GenerateGoResourceCode(pkg string, resources []*model.Resource, ...) error
- func GenerateInlineStructCode(resource *model.Resource, properties []*model.ResourceProperty) string
- func GeneratePropertyDef(resource *model.Resource, property *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 GenerateStructDef(value *structpb.Value) string
- func GoName(name string) string
- func GoTypeRaw(prop *model.ResourceProperty) string
- func GoVarName(name string) string
- func GoVarName2(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 StreamGenerateAnnotationsDef(qw422016 *qt422016.Writer, annotations map[string]string)
- func StreamGenerateEnumCode(qw422016 *qt422016.Writer, enumProperty *model.ResourceProperty)
- func StreamGenerateInlineStructCode(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func StreamGeneratePropertyDef(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 StreamGenerateStructDef(qw422016 *qt422016.Writer, value *structpb.Value)
- 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 StreamUGenerateResourceMappingBodyCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, ...)
- func StreamUPropertyTo(qw422016 *qt422016.Writer, resource *model.Resource, ...)
- func UGenerateResourceMappingBodyCode(pkg string, resource *model.Resource, typeName string, ...) string
- func UPropertyTo(resource *model.Resource, property *model.ResourceProperty, ...) string
- func WriteGenerateAnnotationsDef(qq422016 qtio422016.Writer, annotations map[string]string)
- func WriteGenerateEnumCode(qq422016 qtio422016.Writer, enumProperty *model.ResourceProperty)
- func WriteGenerateInlineStructCode(qq422016 qtio422016.Writer, resource *model.Resource, ...)
- func WriteGeneratePropertyDef(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 WriteGenerateStructDef(qq422016 qtio422016.Writer, value *structpb.Value)
- func WritePreparePropertyFromMapping(qq422016 qtio422016.Writer, resource *model.Resource, ...)
- func WritePropertyTo(qq422016 qtio422016.Writer, resource *model.Resource, ...)
- func WriteUGenerateResourceMappingBodyCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, ...)
- func WriteUPropertyTo(qq422016 qtio422016.Writer, resource *model.Resource, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAnnotationsDef ¶ added in v1.2.36
func GenerateEnumCode ¶
func GenerateEnumCode(enumProperty *model.ResourceProperty) string
func GenerateGoResourceCode ¶
func GenerateInlineStructCode ¶
func GenerateInlineStructCode(resource *model.Resource, properties []*model.ResourceProperty) string
func GeneratePropertyDef ¶ added in v1.2.36
func GeneratePropertyDef(resource *model.Resource, property *model.ResourceProperty) string
func GenerateResourceDefCode ¶
func GenerateStructCode ¶
func GenerateStructCode(pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated) string
func GenerateStructDef ¶ added in v1.2.36
func GoTypeRaw ¶
func GoTypeRaw(prop *model.ResourceProperty) string
func GoVarName2 ¶ added in v1.2.21
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 StreamGenerateAnnotationsDef ¶ added in v1.2.36
func StreamGenerateEnumCode ¶
func StreamGenerateEnumCode(qw422016 *qt422016.Writer, enumProperty *model.ResourceProperty)
func StreamGeneratePropertyDef ¶ added in v1.2.36
func StreamGenerateStructCode ¶
func StreamGenerateStructCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated)
func StreamGenerateStructDef ¶ added in v1.2.36
func StreamGoName ¶
func StreamGoTypeRaw ¶
func StreamGoTypeRaw(qw422016 *qt422016.Writer, prop *model.ResourceProperty)
func StreamGoVarName ¶
func StreamNormalizePointer ¶
func StreamPropPureGoType ¶
func StreamPropertyTo ¶
func StreamPropertyType ¶
func StreamUGenerateResourceMappingBodyCode ¶ added in v1.3.43
func StreamUPropertyTo ¶ added in v1.3.43
func UGenerateResourceMappingBodyCode ¶ added in v1.3.43
func UPropertyTo ¶ added in v1.3.43
func WriteGenerateAnnotationsDef ¶ added in v1.2.36
func WriteGenerateAnnotationsDef(qq422016 qtio422016.Writer, annotations map[string]string)
func WriteGenerateEnumCode ¶
func WriteGenerateEnumCode(qq422016 qtio422016.Writer, enumProperty *model.ResourceProperty)
func WriteGenerateInlineStructCode ¶
func WriteGenerateInlineStructCode(qq422016 qtio422016.Writer, resource *model.Resource, properties []*model.ResourceProperty)
func WriteGeneratePropertyDef ¶ added in v1.2.36
func WriteGeneratePropertyDef(qq422016 qtio422016.Writer, resource *model.Resource, property *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 WriteGenerateStructDef ¶ added in v1.2.36
func WriteGenerateStructDef(qq422016 qtio422016.Writer, value *structpb.Value)
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)
func WriteUGenerateResourceMappingBodyCode ¶ added in v1.3.43
func WriteUGenerateResourceMappingBodyCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)
func WriteUPropertyTo ¶ added in v1.3.43
func WriteUPropertyTo(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.