markphelps / optional

Optional is a library of optional Go types
https://godoc.org/github.com/markphelps/optional
MIT License
210 stars 19 forks source link

If optional is only used for user types, go mod tidy will remove it from project dependencies #25

Closed markniebur closed 1 year ago

markniebur commented 2 years ago

The way around this is to add import _ "github.com/markphelps/optional" to the file that would contain the //go:generate command. It would be very helpful if this info is included in the README.

markphelps commented 1 year ago

@markniebur will do that now! thanks