Documentation ¶
Index ¶
- type Field
- type Func
- type Interface
- type NamedImport
- type StructType
- type Xipe
- func (x Xipe) AddDecls(dscls ...ast.Decl)
- func (x Xipe) AddImports(imports ...string)
- func (x Xipe) AddNamedImports(namedImports ...NamedImport)
- func (x Xipe) FindFunc(name string) (Func, bool)
- func (x Xipe) FindInterface(name string) (Interface, bool)
- func (x Xipe) FindInterfaces() []Interface
- func (x Xipe) FindStructType(name string) (StructType, bool)
- func (x Xipe) GetAllTypeSpecs() map[string]*ast.TypeSpec
- func (x Xipe) Write(w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
func (Func) AppendBeforeReturn ¶
func (Func) LastReturnStmt ¶
func (f Func) LastReturnStmt() *ast.ReturnStmt
type NamedImport ¶
type StructType ¶
type StructType struct {
// contains filtered or unexported fields
}
func (StructType) AppendField ¶
func (s StructType) AppendField(f Field)
func (StructType) FieldExists ¶
func (s StructType) FieldExists(name string) bool
type Xipe ¶
func (Xipe) AddImports ¶
func (Xipe) AddNamedImports ¶
func (x Xipe) AddNamedImports(namedImports ...NamedImport)
func (Xipe) FindInterfaces ¶
func (Xipe) FindStructType ¶
func (x Xipe) FindStructType(name string) (StructType, bool)
Click to show internal directories.
Click to hide internal directories.