Documentation ¶ Index ¶ Variables func Check(node ast.Node, fileSet *token.FileSet) type Rule Examples ¶ Check Constants ¶ This section is empty. Variables ¶ View Source var Struct = Rule{ FieldName: namepkg.Rule{ MaxLen: 30, Style: "camelCase", }, Size: sizeRule{ MaxFields: 100, }, // contains filtered or unexported fields } Functions ¶ func Check ¶ func Check(node ast.Node, fileSet *token.FileSet) Example ¶ var src = `package example type T struct { Name string A, B, C int } ` problems.Clear() w := walker.Parse("example.go", src) w.Walk(func(isLocal bool, node ast.Node) { Check(node, w.FileSet) }) problems.Render() Output: Types ¶ type Rule ¶ type Rule struct { FieldName namepkg.Rule `yaml:"fieldName"` Size sizeRule // contains filtered or unexported fields } Source Files ¶ View all Source files rule.go size_rule.go struct.go Click to show internal directories. Click to hide internal directories.