1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00

cmd/guru: fix bad import, and run gofmt

Change-Id: Ieb5c732bad494942f7b45ac5a1b605e810436e87
Reviewed-on: https://go-review.googlesource.com/19478
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Alan Donovan 2016-02-11 22:57:18 -05:00 committed by Alan Donovan
parent 7347379304
commit 37bb37ec1c
11 changed files with 11 additions and 11 deletions

View File

@ -11,11 +11,11 @@ import (
"go/types"
"sort"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/pointer"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/go/ssa/ssautil"
"golang.org/x/tools/cmd/guru/serial"
)
// Callees reports the possible callees of the function call site

View File

@ -8,11 +8,11 @@ import (
"fmt"
"go/token"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/callgraph"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/go/ssa/ssautil"
"golang.org/x/tools/cmd/guru/serial"
)
// Callers reports the possible callers of the function

View File

@ -8,11 +8,11 @@ import (
"fmt"
"go/token"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/callgraph"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/go/ssa/ssautil"
"golang.org/x/tools/cmd/guru/serial"
)
// Callstack displays an arbitrary path from a root of the callgraph

View File

@ -10,8 +10,8 @@ import (
"go/token"
"go/types"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/loader"
)
// definition reports the location of the definition of an identifier.

View File

@ -15,10 +15,10 @@ import (
"os"
"strings"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/ast/astutil"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/types/typeutil"
"golang.org/x/tools/cmd/guru/serial"
)
// describe describes the syntax node denoted by the query position,

View File

@ -12,8 +12,8 @@ import (
"go/types"
"sort"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/loader"
)
// freevars displays the lexical (not package-level) free variables of

View File

@ -20,11 +20,11 @@ import (
"io"
"path/filepath"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/ast/astutil"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/pointer"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/cmd/guru/serial"
)
type printfFunc func(pos interface{}, format string, args ...interface{})

View File

@ -13,9 +13,9 @@ import (
"sort"
"strings"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/types/typeutil"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/refactor/importgraph"
)

View File

@ -11,10 +11,10 @@ import (
"go/types"
"sort"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/go/ssa/ssautil"
"golang.org/x/tools/cmd/guru/serial"
)
// peers enumerates, for a given channel send (or receive) operation,

View File

@ -11,12 +11,12 @@ import (
"go/types"
"sort"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/ast/astutil"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/pointer"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/go/ssa/ssautil"
"golang.org/x/tools/oracle/serial"
)
// pointsto runs the pointer analysis on the selected expression,

View File

@ -13,8 +13,8 @@ import (
"io/ioutil"
"sort"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/cmd/guru/serial"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/refactor/importgraph"
)