Bot releases are hidden (Show)
Full Changelog: https://github.com/google/wire/compare/v0.5.0...v0.6.0
Published by zombiezen over 3 years ago
go run
command in go:generate
comment (#268)Published by zombiezen almost 5 years ago
FieldsOf
provides a pointer type to the field as well as the actual field type for pointers to structs (#208)--output_file_prefix
flag permits changing the name of the outputted file (#192)go/token
to determine whether names are keywords (#203)wire.Struct
is given a non-struct first argument (#219)Published by shantuo over 5 years ago
Wire version 0.3.0 is the first release we are marking as beta. With this release, we are committing to API stability: we do not intend to make backward-incompatible changes going forward. There are new features and breaking changes in this release, see below for details.
To upgrade to v0.3.0, please upgrade both the Wire command and library.
Bind
is now a pointer type to match argument types in other marker functions. If you have code like wire.Bind(new(Fooer), new(MyFoo)))
, the behavior will change. To upgrade: see the guide for how to migrate.FieldsOf
to inject fields of a struct directly. See the guide for how to use it.Struct
for struct providers. This will replace the current struct provider syntax in 1.0, so please upgrade as soon as possible. To upgrade: see the guide.wire help
command will be more useful. You can use wire help
to list available commands and their descriptions; you can also use wire help [command]
to get more detailed information.--header_file
flag to gen
and diff
commands for copying copyright headers.wire:”-”
tag to prevent filling certain struct fields.Published by shantuo over 5 years ago
This release updates the golang.org/x/tools version used in the generator (#122).
There is no change in Wire semantics.
Published by zombiezen almost 6 years ago
Published by zombiezen almost 6 years ago
diff
now exits with status 1 for differences and 2 for errors (#90, thanks @vangent!)