go/ast.ImportSpec.Path (field)
24 uses
go/ast (current package)
ast.go#L881: Path *BasicLit // import path
ast.go#L913: return s.Path.Pos()
ast.go#L922: return s.Path.End()
filter.go#L463: if path := imp.Path.Value; !seen[path] {
import.go#L60: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
import.go#L208: s.Path.ValuePos = pos[i].Start
resolve.go#L116: path, _ := strconv.Unquote(spec.Path.Value)
resolve.go#L119: p.errorf(spec.Path.Pos(), "could not import %s (%s)", path, err)
scope.go#L105: return d.Path.Pos()
walk.go#L295: Walk(v, n.Path)
go/build
read.go#L425: quoted := spec.Path.Value
go/doc
example.go#L273: p, err := strconv.Unquote(s.Path.Value)
example.go#L346: s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
reader.go#L514: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
go/parser
parser.go#L2322: Path: &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},
go/printer
nodes.go#L1565: p.expr(sanitizeImportPath(s.Path))
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1950: if x.Path != nil {
encode_ast.gen.go#L1952: encode_ast_BasicLit(e, x.Path)
encode_ast.gen.go#L1987: decode_ast_BasicLit(d, &x.Path)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L676: if path, err := strconv.Unquote(spec.Path.Value); err == nil {
synopsis.go#L49: pkg := n.Specs[0].(*ast.ImportSpec).Path.Value
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L207: p, err := strconv.Unquote(s.Path.Value)
example.go#L484: Path: &ast.BasicLit{Value: strconv.Quote(p), Kind: token.STRING, ValuePos: pos},
reader.go#L518: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |