Versions in this module Expand all Collapse all v1 v1.0.0 Jul 9, 2020 Changes in this version + func FormatPackageDocumentation(s string) string + func This() string + type Function struct + func NewCommentedFunction(pkg, name string, params, ret, block []jen.Code, comment string) *Function + func NewFunction(pkg, name string, params, ret, block []jen.Code) *Function + func (m Function) Call(params ...jen.Code) jen.Code + func (m Function) CloneToPackage(pkg string) *Function + func (m Function) Definition() jen.Code + func (m Function) Name() string + func (m Function) QualifiedName() *jen.Statement + func (m Function) ToFunctionSignature() FunctionSignature + type FunctionSignature struct + Comment string + Name string + Params []jen.Code + Ret []jen.Code + func (f FunctionSignature) Signature() jen.Code + type Interface struct + func NewInterface(pkg, name string, funcs []FunctionSignature, comment string) *Interface + func (i Interface) Definition() jen.Code + type Method struct + func NewCommentedPointerMethod(pkg, name, structName string, params, ret, block []jen.Code, comment string) *Method + func NewCommentedValueMethod(pkg, name, structName string, params, ret, block []jen.Code, comment string) *Method + func NewPointerMethod(pkg, name, structName string, params, ret, block []jen.Code) *Method + func NewValueMethod(pkg, name, structName string, params, ret, block []jen.Code) *Method + func (m Method) Call(on string, params ...jen.Code) jen.Code + func (m Method) Definition() jen.Code + func (m Method) Name() string + func (m Method) On(on string) *jen.Statement + func (m Method) ToFunctionSignature() FunctionSignature + type Struct struct + func NewStruct(comment string, name string, methods []*Method, constructors []*Function, ...) *Struct + func (s *Struct) Constructors(name string) *Function + func (s *Struct) Definition() jen.Code + func (s *Struct) Method(name string) *Method + func (s *Struct) ToInterface(pkg, name, comment string) *Interface + type Typedef struct + func NewTypedef(comment string, name string, concreteType jen.Code, methods []*Method, ...) *Typedef + func (t *Typedef) Constructors(name string) *Function + func (t *Typedef) Definition() jen.Code + func (t *Typedef) Method(name string) *Method + func (t *Typedef) ToInterface(pkg, name, comment string) *Interface