Documentation
¶
Overview ¶
Package structly provides a static analyzer that checks for missing required struct fields. Fields marked with `required:"true"` struct tags must be explicitly set in struct literals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "structly", Doc: "checks that struct fields marked with `required:\"true\"` are set in struct literals", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, }
Analyzer is the structly analyzer that checks for missing required fields.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
structly
command
Package main provides a command-line tool for running the structly analyzer.
|
Package main provides a command-line tool for running the structly analyzer. |
|
Package plugin provides a golangci-lint module plugin wrapper for structly
|
Package plugin provides a golangci-lint module plugin wrapper for structly |
Click to show internal directories.
Click to hide internal directories.