Skip to content

Glossary: Go in Practice

Blank import

Also written: blank identifier import, import _

`import _ "path"` imports a package only for its side effect. The SQLite driver and `net/http/pprof` work this way.

Where the book teaches it

Related terms

Drivernet/http/pprof