v0.7.0
This release updates the golang.org/x/tools dependency to fix a build breakage.
v0.6.0
- @rsc made their first contribution in https://github.com/google/wire/pull/339
- @giautm made their first contribution in https://github.com/google/wire/pull/353
- @wirekang made their first contribution in https://github.com/google/wire/pull/357
- @efueyo made their first contribution in https://github.com/google/wire/pull/360
- @stytchiz made their first contribution in https://github.com/google/wire/pull/365
- @toddtreece made their first contribution in https://github.com/google/wire/pull/401
Full Changelog: https://github.com/google/wire/compare/v0.5.0...v0.6.0
0.5.0
- Permit specifying build tags for analysis (#252)
- Use full
go runcommand ingo:generatecomment (#268)
- internal/wire: fix panic in objectCache.processExpr (#236)
- internal/wire: copy doc comment for generated injectors (#254)
- docs: fix syntax error (#255)
- docs: fix incorrect generated code in example (#277)
v0.4.0
FieldsOfprovides a pointer type to the field as well as the actual field type for pointers to structs (#208)- A new
--output_file_prefixflag permits changing the name of the outputted file (#192)
- Use
go/tokento determine whether names are keywords (#203) - Wire no longer panics when
wire.Structis given a non-struct first argument (#219) - Wire no longer emits invalid code for injectors that return their arguments (#222)
- Wire's go.mod no longer includes unused dependencies (#228)
v0.3.0
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.
- github.com/google/wire is now the single canonical import path. Any code still using github.com/google/go-cloud/wire will no longer be recognized. To upgrade: change github.com/google/go-cloud/wire to github.com/google/wire.
- The second argument of
Bindis now a pointer type to match argument types in other marker functions. If you have code likewire.Bind(new(Fooer), new(MyFoo))), the behavior will change. To upgrade: see the guide for how to migrate.
- A new marker function
FieldsOfto inject fields of a struct directly. See the guide for how to use it. - A new marker function
Structfor 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. - The
wire helpcommand will be more useful. You can usewire helpto list available commands and their descriptions; you can also usewire help [command]to get more detailed information. - A new
--header_fileflag togenanddiffcommands for copying copyright headers. Support using awire:”-”tag to prevent filling certain struct fields. - Misc stability and documentation improvements.
v0.2.2
This release updates the golang.org/x/tools version used in the generator (#122). There is no change in Wire semantics.