Roger Peppe
Roger Peppe
I've been working on ideas for migrating some of our dependency injection code to using wire, and one awkwardness is when a service depends on a set of heterogeneous components...
Related to #7 but not quite the same. The documentation for NewSet says that the argument can be a function value. A function literal is a function value, and so...
It's common for constructor functions to return values that have a Close method that's used to clean up the value's associated resources. This doesn't fit easily with the convention used...
One of the specific advantages of the wire approach is that it generates code that's relatively readable compared to reflect-based equivalents. When `wire.Value` is used on a small by-value type,...
Also fix index/library_test.go to use cmp rather than DeepEqual so that the monotonic time fields don't get in the way and cause TestLibraryEncodeDecode to fail.
When using the env backend, then the only keys considered will be those with `config:` field tags. However, if you're using a file backend, then the entire struct is unmarshaled...
The new feature that allows flags to have descriptions precludes them having a comma in. We should document that restriction.
With confita, it's usual to use Load on a struct which doesn't contain all the possible configuration information. For example, we might require information on just the configuration required by...
It's a bit of a pain writing a comparison function when we want slices to compare equal regardless of order. How about making SortSlices use a generic less function when...
It's not always obvious how `mockgen`-generated code has been created, particularly when coming to it without prior knowledge of it. Good practice would be to include a `go:generate` directive that...