wire/cmd/wire: rename from gowire (google/go-cloud#217)
@cflewis and @bradfitz were right: drop the "go". It's cleaner.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
//+build wireinject
|
||||
|
||||
// All of the declarations are in one file.
|
||||
// gowire should copy non-injectors over, preserving imports.
|
||||
// Wire should copy non-injectors over, preserving imports.
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -158,8 +158,8 @@ func (g *gen) frame() []byte {
|
||||
return nil
|
||||
}
|
||||
var buf bytes.Buffer
|
||||
buf.WriteString("// Code generated by gowire. DO NOT EDIT.\n\n")
|
||||
buf.WriteString("//go:generate gowire\n")
|
||||
buf.WriteString("// Code generated by Wire. DO NOT EDIT.\n\n")
|
||||
buf.WriteString("//go:generate wire\n")
|
||||
buf.WriteString("//+build !wireinject\n\n")
|
||||
buf.WriteString("package ")
|
||||
buf.WriteString(g.prog.Package(g.currPackage).Pkg.Name())
|
||||
|
||||
@@ -68,7 +68,7 @@ func TestWire(t *testing.T) {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
// Run gowire from a fake build context.
|
||||
// Run Wire from a fake build context.
|
||||
bctx := test.buildContext()
|
||||
gen, errs := Generate(bctx, wd, test.pkg)
|
||||
if len(gen) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user