R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/
5685043
Old: "os.Exec",
New: "syscall.Exec",
},
+ {
+ OldImport: "runtime",
+ NewImport: "",
+ Old: "runtime.Cgocalls",
+ New: "runtime.NumCgoCall",
+ },
+ {
+ OldImport: "runtime",
+ NewImport: "",
+ Old: "runtime.Goroutines",
+ New: "runtime.NumGoroutine",
+ },
}
"crypto/des"
"net/url"
"os"
+ "runtime"
)
var (
_ = url.ParseWithReference
_ = url.ParseRequest
_ = os.Exec
+ _ = runtime.Cgocalls
+ _ = runtime.Goroutines
)
`,
Out: `package main
"crypto/aes"
"crypto/cipher"
"net/url"
+ "runtime"
"syscall"
)
_ = url.Parse
_ = url.ParseRequestURI
_ = syscall.Exec
+ _ = runtime.NumCgoCall
+ _ = runtime.NumGoroutine
)
`,
},