Documentation ¶
Index ¶
- Constants
- func GetConstTypeChanges(lhs, rhs exports.Content) map[string]Signature
- func GetExports(lhs, rhs exports.Content) exports.Content
- func GetFuncSigChanges(lhs, rhs exports.Content) map[string]FuncSig
- func GetInterfaceMethodSigChanges(lhs, rhs exports.Content) map[string]InterfaceDef
- func GetInterfaceMethods(lhs, rhs exports.Content) map[string]exports.Interface
- func GetStructFieldChanges(lhs, rhs exports.Content) map[string]StructDef
- func GetStructFields(lhs, rhs exports.Content) map[string]exports.Struct
- type FuncSig
- type InterfaceDef
- type Signature
- type StructDef
Constants ¶
const None = "<none>"
None is the value used for functions with no parameters and/or no return values.
Variables ¶
This section is empty.
Functions ¶
func GetConstTypeChanges ¶
GetConstTypeChanges returns a collection of const where the type has changed. Key is the const name, value contains the type change information.
func GetExports ¶
GetExports returns a exports.Content struct containing all exports in rhs that aren't in lhs. This includes any new fields added to structs or methods added to interfaces.
func GetFuncSigChanges ¶
GetFuncSigChanges returns a collection of functions that contain signature changes (params and/or returns). Key is the function name, value contains the signature change information.
func GetInterfaceMethodSigChanges ¶
func GetInterfaceMethodSigChanges(lhs, rhs exports.Content) map[string]InterfaceDef
GetInterfaceMethodSigChanges returns a collection of interfaces with method signature changes. Key is the interface name, value contains the method signature change information.
func GetInterfaceMethods ¶
GetInterfaceMethods returns interfaces common to lhs and rhs where interfaces in rhs contain methods not in lhs. Key is the interface type name, value contains the added content.
func GetStructFieldChanges ¶
GetStructFieldChanges returns a collection of structs with fields that changed their type. Key is the struct name, value contains fields with signature changes.
Types ¶
type FuncSig ¶
type FuncSig struct { // Params contains the parameter signature changes, may be nil. Params *Signature `json:"params,omitempty"` // Returns contains the return signature changes, may be nil. Returns *Signature `json:"returns,omitempty"` }
FuncSig contains the details of how a function's signature changed.
type InterfaceDef ¶
InterfaceDef contains a collection of interface methods with signature changes. Key is the method name, value contains the signature change information.