1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:08:36 -06:00

go/internal/gcimporter: rename from go/gcimporter15

Follow through on promise to remove the old API.

Change-Id: If1f5addfeb1b82acc5a1730474e2f06102dbb615
Reviewed-on: https://go-review.googlesource.com/105977
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Matthew Dempsky 2018-04-09 18:10:05 -07:00
parent 14d5b80f95
commit 5dfd8930f2
19 changed files with 5 additions and 12 deletions

View File

@ -7,9 +7,6 @@
// gc compiler. This package supports go1.7 export data format and all
// later versions.
//
// This package replaces the deprecated golang.org/x/tools/go/gcimporter15
// package, which will be deleted in October 2017.
//
// Although it might seem convenient for this package to live alongside
// go/types in the standard library, this would cause version skew
// problems for developer tools that use it, since they must be able to
@ -32,7 +29,7 @@ import (
"io"
"io/ioutil"
gcimporter "golang.org/x/tools/go/gcimporter15"
"golang.org/x/tools/go/internal/gcimporter"
)
// Find returns the name of an object (.o) or archive (.a) file

View File

@ -13,7 +13,7 @@ import (
"go/types"
"testing"
gcimporter "golang.org/x/tools/go/gcimporter15"
"golang.org/x/tools/go/internal/gcimporter"
)
const src = `

View File

@ -18,7 +18,7 @@ import (
"testing"
"golang.org/x/tools/go/buildutil"
gcimporter "golang.org/x/tools/go/gcimporter15"
"golang.org/x/tools/go/internal/gcimporter"
"golang.org/x/tools/go/loader"
)

View File

@ -6,14 +6,10 @@
// but it also contains the original source-based importer code for Go1.6.
// Once we stop supporting 1.6, we can remove that code.
// Package gcimporter15 provides various functions for reading
// Package gcimporter provides various functions for reading
// gc-generated object files that can be used to implement the
// Importer interface defined by the Go 1.5 standard library package.
//
// Deprecated: this package will be deleted in October 2017.
// New code should use golang.org/x/tools/go/gcexportdata.
//
package gcimporter // import "golang.org/x/tools/go/gcimporter15"
package gcimporter // import "golang.org/x/tools/go/internal/gcimporter"
import (
"bufio"