The import statement brings external packages into your code. In the Hello World example, import "fmt" imports the fmt package, which handles formatted input and output.
You can import multiple packages at once using parentheses:
import (
"fmt"
"strings"
)
Go will refuse to compile if you import a package and don't use it. This keeps your code clean.