Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Label = Rule{ Rule: name.Rule{ MaxLen: 30, Style: "lowerCamelCase", }, // contains filtered or unexported fields }
Functions ¶
func Check ¶
Example ¶
var src = `package example func F() { Label: } ` problems.Clear() w := walker.Parse("example.go", src) w.Walk(func(isLocal bool, node ast.Node) { Check(node, w.FileSet) }) problems.Render()
Output: +----------------+-------------------------------------------------+-------------+ | position | problem | rule | +----------------+-------------------------------------------------+-------------+ | example.go:3:3 | label name Label should be lowerCamelCase style | label.style | +----------------+-------------------------------------------------+-------------+
Types ¶
Click to show internal directories.
Click to hide internal directories.