Documentation
¶
Overview ¶
Package appendbytestring implements a Go analysis linter that flags append(b, []byte(s)...) calls where b is []byte and s is a string, which can be simplified to append(b, s...) without the redundant conversion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "appendbytestring", Doc: "reports append(b, []byte(s)...) calls where s is a string that can be simplified to append(b, s...)", URL: "https://github.com/github/gh-aw/tree/main/pkg/linters/appendbytestring", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer is the append-byte-string analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.