go/ast.ImportSpec.Path (field)
25 uses
go/ast (current package)
ast.go#L901: Path *BasicLit // import path
ast.go#L934: return s.Path.Pos()
ast.go#L943: return s.Path.End()
filter.go#L461: if path := imp.Path.Value; !seen[path] {
import.go#L71: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
import.go#L221: s.Path.ValuePos = pos[i].Start
resolve.go#L119: path, _ := strconv.Unquote(spec.Path.Value)
resolve.go#L122: p.errorf(spec.Path.Pos(), "could not import %s (%s)", path, err)
scope.go#L116: return d.Path.Pos()
walk.go#L282: Walk(v, n.Path)
go/build
read.go#L469: quoted := spec.Path.Value
go/doc
example.go#L207: if s.Path.ValuePos < start {
example.go#L215: p, err := strconv.Unquote(s.Path.Value)
example.go#L239: path := *s.Path
example.go#L240: spec.Path = &path
example.go#L241: spec.Path.ValuePos = groupStart(&spec)
reader.go#L580: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
go/parser
parser.go#L2521: Path: &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},
go/printer
nodes.go#L1693: p.expr(sanitizeImportPath(s.Path))
go/types
resolver.go#L265: if d.spec.Path.Value == "" {
resolver.go#L268: path, err := validatedImportPath(d.spec.Path.Value)
resolver.go#L270: check.errorf(d.spec.Path, BadImportPath, "invalid import path (%s)", err)
resolver.go#L274: imp := check.importPackage(d.spec.Path, path, fileDir)
golang.org/x/tools/go/packages
packages.go#L1282: if imp.Path.Value == `"C"` {
golang.org/x/tools/internal/typesinternal
qualifier.go#L24: path, _ := strconv.Unquote(imp.Path.Value)