github.com/naoina/kocha@v0.7.1-0.20171129072645-78c7a531f799/unit.go (about) 1 package kocha 2 3 import "errors" 4 5 var ( 6 ErrInvokeDefault = errors.New("invoke default") 7 ) 8 9 // Unit is an interface that Unit for FeatureToggle. 10 type Unit interface { 11 // ActiveIf returns whether the Unit is active. 12 ActiveIf() bool 13 }