Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkCanonicalFieldTag (0.2 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go

    	}
    	(*s)[uniqueName{key, name, level}] = pos
    }
    
    var checkTagDups = []string{"json", "xml"}
    var checkTagSpaces = map[string]bool{"json": true, "xml": true, "asn1": true}
    
    // checkCanonicalFieldTag checks a single struct field tag.
    func checkCanonicalFieldTag(pass *analysis.Pass, field *types.Var, tag string, seen *namesSeen) {
    	switch pass.Pkg.Path() {
    	case "encoding/json", "encoding/xml":
    		// These packages know how to use their own APIs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top