go/ast.ImportSpec.Path (field)
27 uses
go/ast (current package)
ast.go#L912: Path *BasicLit // import path
ast.go#L945: return s.Path.Pos()
ast.go#L954: return s.Path.End()
filter.go#L475: if path := imp.Path.Value; !seen[path] {
import.go#L71: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
import.go#L225: updateBasicLitPos(s.Path, 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#L330: quoted := spec.Path.Value
go/doc
example.go#L209: if s.Path.ValuePos < start {
example.go#L217: p, err := strconv.Unquote(s.Path.Value)
example.go#L241: path := *s.Path
example.go#L242: spec.Path = &path
example.go#L243: updateBasicLitPos(spec.Path, groupStart(&spec))
reader.go#L580: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
go/parser
parser.go#L2543: Path: &ast.BasicLit{ValuePos: pos, ValueEnd: end, 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)
go.pact.im/x/plumb/internal/gen
gen.go#L163: p, _ := strconv.Unquote(imp.Path.Value)
golang.org/x/tools/go/ast/inspector
walk.go#L272: walk(v, edge.ImportSpec_Path, -1, n.Path)
golang.org/x/tools/go/packages
packages.go#L1302: if imp.Path.Value == `"C"` {
golang.org/x/tools/internal/typesinternal
qualifier.go#L32: path, _ := strconv.Unquote(imp.Path.Value)