The _________ keyword in Go is used to import a package without directly using its exported identifiers.

  • include
  • import
  • require
  • use
The correct option is "import". In Go, the import keyword is used to import packages into the current file. When importing a package, you can choose to import it without directly referencing its exported identifiers by using the blank identifier _. This allows you to execute the package's init functions without explicitly using its exported symbols.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *