Documentation ¶
Index ¶
- type File
- func (f *File) Buffer() *bytes.Buffer
- func (f *File) Content() ([]byte, error)
- func (f *File) Import(p ImportPath)
- func (f *File) L(args ...interface{}) *File
- func (f *File) NewFuncScope() *Scope
- func (f *File) P(args ...interface{}) *File
- func (f *File) Path() string
- func (f *File) QualifiedIdent(i Ident) string
- func (f *File) QualifiedImportPath(path ImportPath) string
- func (f *File) Scope() *Scope
- func (f *File) Skip()
- func (f *File) Skipped() bool
- func (f *File) Write(p []byte) (int, error)
- func (f *File) WriteFile(FS afero.Fs) error
- type Generator
- type Ident
- type ImportPath
- type Option
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) Import ¶
func (f *File) Import(p ImportPath)
func (*File) NewFuncScope ¶
func (*File) QualifiedIdent ¶
func (*File) QualifiedImportPath ¶
func (f *File) QualifiedImportPath(path ImportPath) string
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type Ident ¶
type Ident struct { Name string ImportPath ImportPath }
type ImportPath ¶
type ImportPath string
func (ImportPath) Ident ¶
func (p ImportPath) Ident(name string) Ident
func (ImportPath) String ¶
func (p ImportPath) String() string
Click to show internal directories.
Click to hide internal directories.