Documentation ¶
Index ¶
- Constants
- func FormatDeclarativeParams(fieldList FieldList) (output string)
- func FormatDeclarativeParamsWithVariadic(fieldList FieldList) (output string)
- func FormatDeclarativeResults(fieldList FieldList) (output string)
- func FormatInputParams(fieldList FieldList) (output string)
- func FormatInputParamsWithVariadic(fieldList FieldList) (output string)
- func FormatReturnZeroValueResults(fieldList FieldList) (output string)
- func TypeString(t types.Type) string
- func TypeZeroValue(t types.Type) string
- type Command
- type Field
- type FieldList
- func (fl *FieldList) Add(field *Field)
- func (fl FieldList) At(i int) *Field
- func (fl FieldList) Format(formatter fieldListFormatter) (output string)
- func (fl FieldList) Len() int
- func (fl FieldList) Less(i, j int) bool
- func (fl FieldList) String() (output string)
- func (fl FieldList) Swap(i, j int)
- func (fl FieldList) Validate() error
- type Func
- func (fn *Func) Name() string
- func (fn *Func) Params() FieldList
- func (fn *Func) Recv() *Struct
- func (fn *Func) RecvName() string
- func (fn *Func) Results() FieldList
- func (fn *Func) SetBlockWriter(f func(*Func, io.Writer) error)
- func (fn *Func) ValueReceiver()
- func (fn *Func) Variadic() bool
- func (fn *Func) WriteTo(w io.Writer) error
- type GoFile
- type Import
- type SimpleMock
- type Struct
Constants ¶
View Source
const ( StatusOK int = 0 StatusErr int = -1 )
Variables ¶
This section is empty.
Functions ¶
func FormatDeclarativeParams ¶
func FormatInputParams ¶
func TypeZeroValue ¶
TypeZeroValue returns zero value of type.
Types ¶
type FieldList ¶
type FieldList []*Field
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
func (*Func) ValueReceiver ¶
func (fn *Func) ValueReceiver()
type SimpleMock ¶
type SimpleMock struct {
// contains filtered or unexported fields
}
func NewSimpleMock ¶
func NewSimpleMock(name string, interFace *types.Interface) (*SimpleMock, error)
func (*SimpleMock) Name ¶
func (m *SimpleMock) Name() string
Click to show internal directories.
Click to hide internal directories.