Broad Wildcard Import (ARCH5192)
Esta página aún no está disponible en tu idioma.
Key go.quality.dot-import · Severity warning · Category quality
A dot import drops the package qualifier, hiding where identifiers come from and risking name collisions. Use qualified imports.
Incorrect
Section titled “Incorrect”import ( . "fmt" . "strings")
func greet(name string) { Println(ToUpper(name))}Correct
Section titled “Correct”import ( "fmt" "strings")
func greet(name string) { fmt.Println(strings.ToUpper(name))}Remove the dot import and qualify symbols with their package name.