Documentation ¶
Index ¶
- type ImportInfo
- type Writer
- func (w *Writer) AddAnonImport(path string)
- func (w *Writer) BasePath() string
- func (w *Writer) Frame() []byte
- func (w *Writer) GetSortedImports() []string
- func (w *Writer) HasImports() bool
- func (w *Writer) Import(name, path string) string
- func (w *Writer) RewritePkgRefs(node ast.Node) ast.Node
- func (w *Writer) TypeString(t stdtypes.Type) string
- func (w *Writer) Write(format string, args ...interface{})
- func (w *Writer) WriteAST(node ast.Node)
- func (w *Writer) WriteConvertType(assignId, valueId string, f *stdtypes.Var, sliceErr string, declareVar bool)
- func (w *Writer) WriteDefer(params []string, calls []string, body func())
- func (w *Writer) WriteEnumStrings(params []string)
- func (w *Writer) WriteFunc(name, recv string, params, results []string, body func())
- func (w *Writer) WriteFuncCall(id, name string, params []string)
- func (w *Writer) WriteLn()
- func (w *Writer) WriteSignature(keyvals []string)
- func (w *Writer) WriteStruct(keyvals []string, assign bool)
- func (w *Writer) WriteStructAssign(keyvals []string)
- func (w *Writer) WriteStructDefined(keyvals []string)
- func (w *Writer) WriteType(name string)
- func (w *Writer) WriteTypeStruct(name string, keyvals []string)
- func (w *Writer) ZeroValue(t stdtypes.Type) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportInfo ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) AddAnonImport ¶
func (*Writer) GetSortedImports ¶
func (*Writer) HasImports ¶
func (*Writer) WriteConvertType ¶
func (*Writer) WriteDefer ¶
func (*Writer) WriteEnumStrings ¶
func (*Writer) WriteFuncCall ¶
func (*Writer) WriteSignature ¶
func (*Writer) WriteStruct ¶
func (*Writer) WriteStructAssign ¶
func (*Writer) WriteStructDefined ¶
func (*Writer) WriteTypeStruct ¶
Click to show internal directories.
Click to hide internal directories.