Documentation ¶
Index ¶
- Variables
- func VariableNameJoin(prefix, name string) string
- type ArrayType
- type ArrayTypeBuilder
- func (b *ArrayTypeBuilder) AstArray(v *ast.ArrayType) *ArrayTypeBuilder
- func (b *ArrayTypeBuilder) Build() *ArrayType
- func (b *ArrayTypeBuilder) ImpCache(v *cache.ImportCache) *ArrayTypeBuilder
- func (b *ArrayTypeBuilder) IsPointer(v bool) *ArrayTypeBuilder
- func (b *ArrayTypeBuilder) Node(v annotation.Node) *ArrayTypeBuilder
- func (b *ArrayTypeBuilder) ParentImport(v string) *ArrayTypeBuilder
- type Field
- type FieldBuilder
- func (b *FieldBuilder) AstExpr(v ast.Expr) *FieldBuilder
- func (b *FieldBuilder) Build() *Field
- func (b *FieldBuilder) ImpCache(v *cache.ImportCache) *FieldBuilder
- func (b *FieldBuilder) Name(v string) *FieldBuilder
- func (b *FieldBuilder) Node(v annotation.Node) *FieldBuilder
- func (b *FieldBuilder) ParentImport(v string) *FieldBuilder
- type MapType
- type MapTypeBuilder
- func (b *MapTypeBuilder) AstKeyExpr(v ast.Expr) *MapTypeBuilder
- func (b *MapTypeBuilder) AstValueExpr(v ast.Expr) *MapTypeBuilder
- func (b *MapTypeBuilder) Build() *MapType
- func (b *MapTypeBuilder) ImpCache(v *cache.ImportCache) *MapTypeBuilder
- func (b *MapTypeBuilder) IsPointer(v bool) *MapTypeBuilder
- func (b *MapTypeBuilder) Node(v annotation.Node) *MapTypeBuilder
- func (b *MapTypeBuilder) ParentImport(v string) *MapTypeBuilder
- type PrimitiveType
- type PrimitiveTypeBuilder
- type StructType
- type StructTypeBuilder
- func (b *StructTypeBuilder) Alias(v string) *StructTypeBuilder
- func (b *StructTypeBuilder) AstStruct(v *ast.StructType) *StructTypeBuilder
- func (b *StructTypeBuilder) Build() *StructType
- func (b *StructTypeBuilder) Fields(v []*Field) *StructTypeBuilder
- func (b *StructTypeBuilder) ImpCache(v *cache.ImportCache) *StructTypeBuilder
- func (b *StructTypeBuilder) ImportPath(v string) *StructTypeBuilder
- func (b *StructTypeBuilder) IsPointer(v bool) *StructTypeBuilder
- func (b *StructTypeBuilder) Name(v string) *StructTypeBuilder
- func (b *StructTypeBuilder) Node(v annotation.Node) *StructTypeBuilder
- func (b *StructTypeBuilder) ParentImport(v string) *StructTypeBuilder
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var WrongPathErr = errors.New("wrong name path")
Functions ¶
func VariableNameJoin ¶
Types ¶
type ArrayType ¶
type ArrayType struct {
// contains filtered or unexported fields
}
@Builder(type="pointer")
func (*ArrayType) DeclaredType ¶
type ArrayTypeBuilder ¶
type ArrayTypeBuilder struct {
// contains filtered or unexported fields
}
func NewArrayTypeBuilder ¶
func NewArrayTypeBuilder() *ArrayTypeBuilder
func (*ArrayTypeBuilder) AstArray ¶
func (b *ArrayTypeBuilder) AstArray(v *ast.ArrayType) *ArrayTypeBuilder
func (*ArrayTypeBuilder) Build ¶
func (b *ArrayTypeBuilder) Build() *ArrayType
func (*ArrayTypeBuilder) ImpCache ¶
func (b *ArrayTypeBuilder) ImpCache(v *cache.ImportCache) *ArrayTypeBuilder
func (*ArrayTypeBuilder) IsPointer ¶
func (b *ArrayTypeBuilder) IsPointer(v bool) *ArrayTypeBuilder
func (*ArrayTypeBuilder) Node ¶
func (b *ArrayTypeBuilder) Node(v annotation.Node) *ArrayTypeBuilder
func (*ArrayTypeBuilder) ParentImport ¶
func (b *ArrayTypeBuilder) ParentImport(v string) *ArrayTypeBuilder
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
@Builder(type="pointer")
func (*Field) Declaration ¶
func (*Field) DeclaredType ¶
func (*Field) FindNilChecks ¶
func (*Field) IsExported ¶
type FieldBuilder ¶
type FieldBuilder struct {
// contains filtered or unexported fields
}
func NewFieldBuilder ¶
func NewFieldBuilder() *FieldBuilder
func (*FieldBuilder) AstExpr ¶
func (b *FieldBuilder) AstExpr(v ast.Expr) *FieldBuilder
func (*FieldBuilder) Build ¶
func (b *FieldBuilder) Build() *Field
func (*FieldBuilder) ImpCache ¶
func (b *FieldBuilder) ImpCache(v *cache.ImportCache) *FieldBuilder
func (*FieldBuilder) Name ¶
func (b *FieldBuilder) Name(v string) *FieldBuilder
func (*FieldBuilder) Node ¶
func (b *FieldBuilder) Node(v annotation.Node) *FieldBuilder
func (*FieldBuilder) ParentImport ¶
func (b *FieldBuilder) ParentImport(v string) *FieldBuilder
type MapType ¶
type MapType struct {
// contains filtered or unexported fields
}
@Builder(type="pointer")
func (*MapType) DeclaredType ¶
type MapTypeBuilder ¶
type MapTypeBuilder struct {
// contains filtered or unexported fields
}
func NewMapTypeBuilder ¶
func NewMapTypeBuilder() *MapTypeBuilder
func (*MapTypeBuilder) AstKeyExpr ¶
func (b *MapTypeBuilder) AstKeyExpr(v ast.Expr) *MapTypeBuilder
func (*MapTypeBuilder) AstValueExpr ¶
func (b *MapTypeBuilder) AstValueExpr(v ast.Expr) *MapTypeBuilder
func (*MapTypeBuilder) Build ¶
func (b *MapTypeBuilder) Build() *MapType
func (*MapTypeBuilder) ImpCache ¶
func (b *MapTypeBuilder) ImpCache(v *cache.ImportCache) *MapTypeBuilder
func (*MapTypeBuilder) IsPointer ¶
func (b *MapTypeBuilder) IsPointer(v bool) *MapTypeBuilder
func (*MapTypeBuilder) Node ¶
func (b *MapTypeBuilder) Node(v annotation.Node) *MapTypeBuilder
func (*MapTypeBuilder) ParentImport ¶
func (b *MapTypeBuilder) ParentImport(v string) *MapTypeBuilder
type PrimitiveType ¶
type PrimitiveType struct {
// contains filtered or unexported fields
}
@Builder(type="pointer")
func (*PrimitiveType) DeclaredType ¶
func (p *PrimitiveType) DeclaredType() string
func (*PrimitiveType) IsPointer ¶
func (p *PrimitiveType) IsPointer() bool
func (*PrimitiveType) Name ¶
func (p *PrimitiveType) Name() string
type PrimitiveTypeBuilder ¶
type PrimitiveTypeBuilder struct {
// contains filtered or unexported fields
}
func NewPrimitiveTypeBuilder ¶
func NewPrimitiveTypeBuilder() *PrimitiveTypeBuilder
func (*PrimitiveTypeBuilder) Build ¶
func (b *PrimitiveTypeBuilder) Build() *PrimitiveType
func (*PrimitiveTypeBuilder) IsPointer ¶
func (b *PrimitiveTypeBuilder) IsPointer(v bool) *PrimitiveTypeBuilder
func (*PrimitiveTypeBuilder) Name ¶
func (b *PrimitiveTypeBuilder) Name(v string) *PrimitiveTypeBuilder
type StructType ¶
type StructType struct {
// contains filtered or unexported fields
}
@Builder(type="pointer")
func (*StructType) DeclaredType ¶
func (s *StructType) DeclaredType() string
func (*StructType) Equal ¶
func (s *StructType) Equal(s1 *StructType) bool
func (*StructType) Fields ¶
func (s *StructType) Fields() []*Field
func (*StructType) IsPointer ¶
func (s *StructType) IsPointer() bool
type StructTypeBuilder ¶
type StructTypeBuilder struct {
// contains filtered or unexported fields
}
func NewStructTypeBuilder ¶
func NewStructTypeBuilder() *StructTypeBuilder
func (*StructTypeBuilder) Alias ¶
func (b *StructTypeBuilder) Alias(v string) *StructTypeBuilder
func (*StructTypeBuilder) AstStruct ¶
func (b *StructTypeBuilder) AstStruct(v *ast.StructType) *StructTypeBuilder
func (*StructTypeBuilder) Build ¶
func (b *StructTypeBuilder) Build() *StructType
func (*StructTypeBuilder) Fields ¶
func (b *StructTypeBuilder) Fields(v []*Field) *StructTypeBuilder
func (*StructTypeBuilder) ImpCache ¶
func (b *StructTypeBuilder) ImpCache(v *cache.ImportCache) *StructTypeBuilder
func (*StructTypeBuilder) ImportPath ¶
func (b *StructTypeBuilder) ImportPath(v string) *StructTypeBuilder
func (*StructTypeBuilder) IsPointer ¶
func (b *StructTypeBuilder) IsPointer(v bool) *StructTypeBuilder
func (*StructTypeBuilder) Name ¶
func (b *StructTypeBuilder) Name(v string) *StructTypeBuilder
func (*StructTypeBuilder) Node ¶
func (b *StructTypeBuilder) Node(v annotation.Node) *StructTypeBuilder
func (*StructTypeBuilder) ParentImport ¶
func (b *StructTypeBuilder) ParentImport(v string) *StructTypeBuilder
Click to show internal directories.
Click to hide internal directories.