I have a struct like this:
.foo/bar/constants.go
.foo/constants.go
.main.go
In main.go
I declare the type:
package agepack
type EventType uint
//go:generate stringer -type EventType
const (
FirstType EventType iota
SecondType
....
)
In each constants.go
I have soimething like this:
package foo
const (
OneMoreType agepack.EventType = 100 + iota
)
How can I generate stringer with values from all packages?