type go/ast.ImportSpec
27 uses
go/ast (current package)
ast.go#L894: ImportSpec struct {
ast.go#L926: func (s *ImportSpec) Pos() token.Pos {
ast.go#L935: func (s *ImportSpec) End() token.Pos {
ast.go#L956: func (*ImportSpec) specNode() {}
ast.go#L1056: Imports []*ImportSpec // imports in this file
filter.go#L457: var imports []*ImportSpec
import.go#L60: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
import.go#L68: n := s.(*ImportSpec).Name
import.go#L76: c := s.(*ImportSpec).Comment
import.go#L88: return prev.(*ImportSpec).Comment == nil
import.go#L151: importComments := map[*ImportSpec][]cgPos{}
import.go#L166: s := specs[specIndex].(*ImportSpec)
import.go#L204: s := s.(*ImportSpec)
scope.go#L101: case *ImportSpec:
walk.go#L299: case *ImportSpec:
go/build
read.go#L453: spec, ok := dspec.(*ast.ImportSpec)
go/doc
example.go#L312: if c := s.(*ast.ImportSpec).Doc; c != nil {
example.go#L349: s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
exports.go#L216: case *ast.ImportSpec:
reader.go#L567: if s, ok := spec.(*ast.ImportSpec); ok {
go/parser
parser.go#L62: imports []*ast.ImportSpec // list of imports
parser.go#L2531: spec := &ast.ImportSpec{
go/printer
nodes.go#L1620: case *ast.ImportSpec:
printer.go#L1040: case *ast.ImportSpec:
printer.go#L1060: case *ast.ImportSpec:
go/types
decl.go#L348: importDecl struct{ spec *ast.ImportSpec }
decl.go#L381: case *ast.ImportSpec:
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)