Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method struct { Name string HasContext bool ReturnsError bool HasVariadic bool ParameterNames []string ParametersNameAndType []jen.Code ReturnTypes []jen.Code ContextParameter *int ReturnErrorIndex *int }
Method holds all of the data for code generation on a specific method signature
func MustParseMethod ¶
MustParseMethod parses the given types.Signature and generates a Method, if there's an error this method will panic
func ParseMethod ¶
ParseMethod parses the given types.Signature and generates a Method
func (*Method) ConstantRef ¶
ConstantRef is the reference to the constant for this method's name
func (*Method) ContextParam ¶
ContextParam generates the param name and type for a context arg for the given method
func (*Method) Parameters ¶
Parameters generates code for parameter names to be used in codegen
Click to show internal directories.
Click to hide internal directories.