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:
Ross Light
2018-07-23 11:07:27 -07:00
parent 5f0dd9ee8f
commit 1de1d101c7
6 changed files with 16 additions and 16 deletions

View File

@@ -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

View File

@@ -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())

View File

@@ -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 {