Documentation ¶
Index ¶
- type GoFile
- func (f *GoFile) AddImport(alias string, path ...string)
- func (f *GoFile) Base() string
- func (f *GoFile) C(s string)
- func (f *GoFile) Cf(format string, args ...interface{})
- func (f *GoFile) Cs(s ...string)
- func (f *GoFile) Extension() string
- func (f *GoFile) FormatComments(cs ...string) (fcs []string)
- func (f *GoFile) HasImport(path ...string) bool
- func (f *GoFile) I(path string) string
- func (f *GoFile) IsEmpty() bool
- func (f *GoFile) Merge() bool
- func (f *GoFile) Name() string
- func (f *GoFile) Overwrite() bool
- func (f *GoFile) P(s string)
- func (f *GoFile) Path() string
- func (f *GoFile) Pf(format string, args ...interface{})
- func (f *GoFile) Ps(s ...string)
- func (f *GoFile) WriteTo(w io.Writer) (int64, error)
- type ProtoFile
- func (f *ProtoFile) AddImport(alias string, path ...string)
- func (f *ProtoFile) Base() string
- func (f *ProtoFile) Extension() string
- func (f *ProtoFile) HasImport(path ...string) bool
- func (f *ProtoFile) IsEmpty() bool
- func (f *ProtoFile) Merge() bool
- func (f *ProtoFile) Name() string
- func (f *ProtoFile) Overwrite() bool
- func (f *ProtoFile) Path() string
- func (f *ProtoFile) WriteTo(w io.Writer) (int64, error)
- type TextFile
- func (f *TextFile) AddImport(alias string, path ...string)
- func (f *TextFile) Base() string
- func (f *TextFile) C(s string)
- func (f *TextFile) Cf(format string, args ...interface{})
- func (f *TextFile) CommentFormat(format string)
- func (f *TextFile) Cs(s ...string)
- func (f *TextFile) Extension() string
- func (f *TextFile) FormatComments(cs ...string) (fcs []string)
- func (f *TextFile) HasImport(path ...string) bool
- func (f *TextFile) IsEmpty() bool
- func (f *TextFile) Merge() bool
- func (f *TextFile) Name() string
- func (f *TextFile) Overwrite() bool
- func (f *TextFile) P(s string)
- func (f *TextFile) Path() string
- func (f *TextFile) Pf(format string, args ...interface{})
- func (f *TextFile) Ps(s ...string)
- func (f *TextFile) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoFile ¶
type GoFile struct { Pkg string // contains filtered or unexported fields }
func (*GoFile) FormatComments ¶
type ProtoFile ¶
func NewProtoFile ¶
type TextFile ¶
type TextFile struct {
// contains filtered or unexported fields
}
func NewTextFile ¶
func (*TextFile) CommentFormat ¶
func (*TextFile) FormatComments ¶
Click to show internal directories.
Click to hide internal directories.