golang

package
v1.1.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEnumCode

func GenerateEnumCode(enumProperty *model.ResourceProperty) string

func GenerateGoResourceCode

func GenerateGoResourceCode(pkg string, resources []*model.Resource, path string, namespace string) error

func GenerateInlineStructCode

func GenerateInlineStructCode(resource *model.Resource, properties []*model.ResourceProperty) string

func GenerateResourceCode

func GenerateResourceCode(pkg string, resource *model.Resource) string

func GenerateResourceDefCode

func GenerateResourceDefCode(pkg string, resource *model.Resource) string

func GenerateResourceMappingBodyCode

func GenerateResourceMappingBodyCode(pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource) string

func GenerateResourceMappingCode

func GenerateResourceMappingCode(pkg string, resource *model.Resource, resources []*model.Resource) string

func GenerateResourceMappingHeaderCode

func GenerateResourceMappingHeaderCode(pkg string, resource *model.Resource, resources []*model.Resource) string

func GenerateStructCode

func GenerateStructCode(pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated) string

func GoName

func GoName(name string) string

func GoTypeRaw

func GoTypeRaw(prop *model.ResourceProperty) string

func GoVarName

func GoVarName(name string) string

func HasPointer

func HasPointer(prop *model.ResourceProperty, collectionItem bool) bool

func NormalizePointer

func NormalizePointer(prop *model.ResourceProperty, varName string, collectionItem bool, mustHavePointer bool) string

func PreparePropertyFromMapping

func PreparePropertyFromMapping(resource *model.Resource, property *model.ResourceProperty, valueVarName string, insideCollection bool) string

func PropPureGoType

func PropPureGoType(resource *model.Resource, prop *model.ResourceProperty, actualName string) string

func PropertyTo

func PropertyTo(resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string) string

func PropertyType

func PropertyType(resource *model.Resource, prop *model.ResourceProperty) string

func StreamGenerateEnumCode

func StreamGenerateEnumCode(qw422016 *qt422016.Writer, enumProperty *model.ResourceProperty)

func StreamGenerateInlineStructCode

func StreamGenerateInlineStructCode(qw422016 *qt422016.Writer, resource *model.Resource, properties []*model.ResourceProperty)

func StreamGenerateResourceCode

func StreamGenerateResourceCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource)

func StreamGenerateResourceDefCode

func StreamGenerateResourceDefCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource)

func StreamGenerateResourceMappingBodyCode

func StreamGenerateResourceMappingBodyCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)

func StreamGenerateResourceMappingCode

func StreamGenerateResourceMappingCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func StreamGenerateResourceMappingHeaderCode

func StreamGenerateResourceMappingHeaderCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func StreamGenerateStructCode

func StreamGenerateStructCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated)

func StreamGoName

func StreamGoName(qw422016 *qt422016.Writer, name string)

func StreamGoTypeRaw

func StreamGoTypeRaw(qw422016 *qt422016.Writer, prop *model.ResourceProperty)

func StreamGoVarName

func StreamGoVarName(qw422016 *qt422016.Writer, name string)

func StreamNormalizePointer

func StreamNormalizePointer(qw422016 *qt422016.Writer, prop *model.ResourceProperty, varName string, collectionItem bool, mustHavePointer bool)

func StreamPreparePropertyFromMapping

func StreamPreparePropertyFromMapping(qw422016 *qt422016.Writer, resource *model.Resource, property *model.ResourceProperty, valueVarName string, insideCollection bool)

func StreamPropPureGoType

func StreamPropPureGoType(qw422016 *qt422016.Writer, resource *model.Resource, prop *model.ResourceProperty, actualName string)

func StreamPropertyTo

func StreamPropertyTo(qw422016 *qt422016.Writer, resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string)

func StreamPropertyType

func StreamPropertyType(qw422016 *qt422016.Writer, resource *model.Resource, prop *model.ResourceProperty)

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 WriteGenerateResourceMappingCode

func WriteGenerateResourceMappingCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func WriteGenerateResourceMappingHeaderCode

func WriteGenerateResourceMappingHeaderCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL