Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "marshal", Doc: "Check if marshaled structs contain an interface", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, }
View Source
var ErrMissingClosingBracket = errors.New("missing closing bracket ']'")
Functions ¶
func ReadMarshalers ¶
ReadMarshalers reads an marshalers file, a newline delimited file that lists function calls to be checked
Lines that start with two forward slashes are considered comments and are ignored. Use [] to represent argument index, 0-based.
example: a function called this way mypkg.Marshal(ctx, bytes) should be represented as mypkg.Marshal[1]
func RegisterFlags ¶
func RegisterFlags()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.