Please help i need reference for this problem

command-line-arguments

.\Login.go:6:8: imported and not used: “github.com/go-sql-driver/mysql

https://golang.org/ref/spec#Import_declarations

It is illegal for a package to […] directly import a package without referring to any of its exported identifiers. To import a package solely for its side-effects (initialization), use the blank identifier as explicit package name:

import _ "lib/math"

The SQL drivers are typically imported for their side effects (registering a new SQL driver), so you probably want the dash import as above.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.