Skip to content

duplicated-imports

Reject importing the same package more than once.

Updated View as Markdown

Default severity: error

Reject importing the same package more than once.

Bad

import (
	"strings"
	text "strings"
)

Good

import "strings"
Navigation

Type to search…

↑↓ navigate↵ selectEsc close