use enumer generate tool for state strings

This commit is contained in:
Christian Schwarz
2018-10-12 22:10:49 +02:00
parent 89e0103abd
commit af3d96dab8
8 changed files with 172 additions and 77 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ func (f *PrunerFactory) BuildReceiverPruner(ctx context.Context, target Target,
return p
}
//go:generate stringer -type=State
//go:generate enumer -type=State
type State int
const (