Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = SCAnalyzer.Analyzer
View Source
var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{ Analyzer: &analysis.Analyzer{ Name: "SA6006", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, }, Doc: &lint.RawDocumentation{ Title: `Using io.WriteString to write \'[]byte\'`, Text: `Using io.WriteString to write a slice of bytes, as in io.WriteString(w, string(b)) is both unnecessary and inefficient. Converting from \'[]byte\' to \'string\' has to allocate and copy the data, and we could simply use \'w.Write(b)\' instead.`, Since: "2024.1", }, })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.