October 2015
Beginner to intermediate
400 pages
14h 44m
English
Each package is identified by a unique string
called its import path.
Import paths are the strings that appear in import
declarations.
import (
"fmt"
"math/rand"
"encoding/json"
"golang.org/x/net/html"
"github.com/go-sql-driver/mysql"
)
As we mentioned in Section 2.6.1, the Go language
specification doesn’t define the meaning of these strings or how to
determine a package’s import path, but leaves these issues to the
tools.
In this chapter, we’ll take a detailed look at how the go tool interprets them, since that’s what the majority of Go programmers use for building, testing, and so on. Other tools do exist, though. For example, Go programmers using Google’s internal multi-language build ...
Read now
Unlock full access