goconst

package
Version: v0.0.0-...-7faf06e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "goconst"

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: Name,
	Doc:  "Finds repeated strings that could be replaced by a constant",
	Run:  run,
}

Functions

This section is empty.

Types

type Goconst

type Goconst struct {
	MinStringLen        int `mapstructure:"min-len"`
	MinOccurrencesCount int `mapstructure:"min-occurrences"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL