marshal

package
v0.0.0-...-6899a8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 15 Imported by: 1

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

func ReadMarshalers(path string) ([]marshaler, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL