Documentation
¶
Index ¶
- type Comments
- type GoFileBuf
- func (g *GoFileBuf) Apply(w io.Writer) error
- func (g *GoFileBuf) ImportStatement() string
- func (g *GoFileBuf) ImportStatementItems() []string
- func (g *GoFileBuf) P(v ...any)
- func (g *GoFileBuf) Pf(format string, v ...any)
- func (g *GoFileBuf) QualifiedGoIdent(ident GoIdent) string
- func (g *GoFileBuf) Write(p []byte) (n int, err error)
- type GoIdent
- type GoImportPath
- type GoOption
- type GoPackageName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoFileBuf ¶
type GoFileBuf struct {
Opts GoOption
// contains filtered or unexported fields
}
func NewGoFileBuf ¶
func (*GoFileBuf) ImportStatement ¶
func (*GoFileBuf) ImportStatementItems ¶
func (*GoFileBuf) QualifiedGoIdent ¶
type GoIdent ¶
type GoIdent struct {
GoImportPath GoImportPath
Name string
}
type GoImportPath ¶
type GoImportPath string
func (GoImportPath) Ident ¶
func (m GoImportPath) Ident(name string) GoIdent
type GoOption ¶
type GoOption struct {
GenFileSuffix string
GenFileImportPath GoImportPath
}
type GoPackageName ¶
type GoPackageName string
Click to show internal directories.
Click to hide internal directories.