gotools/go/analysis/passes/structtag/structtag.go

const Doc

var Analyzer

func run(pass *analysis.Pass) (interface{}

type namesSeen

type uniqueName

func (s *namesSeen) Get(key, name string, level int) (token.Pos, bool) {}

func (s *namesSeen) Set(key, name string, level int, pos token.Pos) {}

var checkTagDups

var checkTagSpaces

// checkCanonicalFieldTag checks a single struct field tag.
func checkCanonicalFieldTag(pass *analysis.Pass, field *types.Var, tag string, seen *namesSeen) {}

// checkTagDuplicates checks a single struct field tag to see if any tags are
// duplicated. nearest is the field that's closest to the field being checked,
// while still being part of the top-level struct type.
func checkTagDuplicates(pass *analysis.Pass, tag, key string, nearest, field *types.Var, seen *namesSeen, level int) {}

var errTagSyntax

var errTagKeySyntax

var errTagValueSyntax

var errTagValueSpace

var errTagSpace

// validateStructTag parses the struct tag and returns an error if it is not
// in the canonical format, which is a space-separated list of key:"value"
// settings. The value may contain spaces.
func validateStructTag(tag string) error {}