Documentation ¶
Index ¶
- func FlatStruct(s *types.Struct) *types.Struct
- type Method
- type ModelType
- type Models
- func (m *Models) AddImport(pkg *types.Package)
- func (m *Models) AddMethods(methods ...*Method) error
- func (m *Models) AddType(name string, typ types.Type) error
- func (m *Models) Imports() (imports []*types.Package)
- func (m *Models) Types() (modelTypes []ModelType)
- func (m *Models) Write(buf *bytes.Buffer, pkg *types.Package)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Method ¶
type Models ¶
type Models struct {
// contains filtered or unexported fields
}
func (*Models) AddMethods ¶
Click to show internal directories.
Click to hide internal directories.