gitee.com/wgliang/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/simplecode/lint/lint16.go (about)

     1  // Copyright (c) 2016 The Go Authors. All rights reserved.
     2  //
     3  // Use of this source code is governed by a BSD-style
     4  // license that can be found in the LICENSE file or at
     5  // https://developers.google.com/open-source/licenses/bsd.
     6  
     7  // +build go1.6
     8  
     9  package lint
    10  
    11  import "go/types"
    12  
    13  // This is in its own file so it can be ignored under Go 1.5.
    14  
    15  func (i importer) ImportFrom(path, srcDir string, mode types.ImportMode) (*types.Package, error) {
    16  	return i.impFn(i.packages, path, srcDir)
    17  }