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:
14
README.md
14
README.md
@@ -11,10 +11,10 @@ initialization.
|
||||
|
||||
## Installing
|
||||
|
||||
Install `gowire` by running the following:
|
||||
Install Wire by running:
|
||||
|
||||
```shell
|
||||
go get github.com/google/go-cloud/wire/cmd/gowire
|
||||
go get github.com/google/go-cloud/wire/cmd/wire
|
||||
```
|
||||
|
||||
## Basics
|
||||
@@ -156,19 +156,19 @@ used during code generation for that injector.
|
||||
Any non-injector declarations found in a file with injectors will be copied into
|
||||
the generated file.
|
||||
|
||||
You can generate the injector by invoking `gowire` in the package directory:
|
||||
You can generate the injector by invoking Wire in the package directory:
|
||||
|
||||
```shell
|
||||
gowire
|
||||
wire
|
||||
```
|
||||
|
||||
Wire will produce an implementation of the injector in a file called
|
||||
`wire_gen.go` that looks something like this:
|
||||
|
||||
```go
|
||||
// Code generated by gowire. DO NOT EDIT.
|
||||
// Code generated by Wire. DO NOT EDIT.
|
||||
|
||||
//go:generate gowire
|
||||
//go:generate wire
|
||||
//+build !wireinject
|
||||
|
||||
package main
|
||||
@@ -314,7 +314,7 @@ func injectFoo() Foo {
|
||||
|
||||
It's important to note that the expression will be copied to the injector's
|
||||
package; references to variables will be evaluated during the injector
|
||||
package's initialization. `gowire` will emit an error if the expression calls
|
||||
package's initialization. Wire will emit an error if the expression calls
|
||||
any functions or receives from any channels.
|
||||
|
||||
### Cleanup functions
|
||||
|
||||
Reference in New Issue
Block a user