Documentation
¶
Index ¶
- type DbTOGoTypeTransformer
- type GoType
- func (g *GoType) Import() imports.Import
- func (g *GoType) IsArray() bool
- func (g *GoType) IsPointer() bool
- func (g *GoType) PackageName() string
- func (g *GoType) SetImport(imp imports.Import) *GoType
- func (g *GoType) String() string
- func (g *GoType) TypeName() string
- func (g *GoType) TypeWithPackage() string
- type GoTypeFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbTOGoTypeTransformer ¶
type GoType ¶
type GoType struct {
// contains filtered or unexported fields
}
func NewGoType ¶
NewGoType creates a new GoType from a full type name e.g. plugin.Table -> GoType{typeName: "Table", packageName: "plugin"} e.g. *plugin.Table -> GoType{typeName: "Table", packageName: "plugin", isPointer: true} e.g. []plugin.Table -> GoType{typeName: "Table", packageName: "plugin", isArray: true, arrayDims: 1} e.g. github.com/sqlc-dev/plugin-sdk-go/plugin.Table -> GoType{typeName: "Table", packageName: "plugin", typeImport: Import{Path: "github.com/sqlc-dev/plugin-sdk-go/plugin"}}
func (*GoType) PackageName ¶
func (*GoType) TypeWithPackage ¶
type GoTypeFormatter ¶
type GoTypeFormatter struct {
// contains filtered or unexported fields
}
func NewGoTypeFormatter ¶
func NewGoTypeFormatter( typeTransformer DbTOGoTypeTransformer, options *opts.Options, ) *GoTypeFormatter
Click to show internal directories.
Click to hide internal directories.