An open API service indexing awesome lists of open source software.

https://github.com/bavix/features


https://github.com/bavix/features

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# features

Simple implementation of the flags feature.

### Usage

```golang
import "github.com/bavix/features"

const (
Dishing features.Flag = iota
Washing
Cooking
Driving
)
//...
toggles := features.New(Dishing, Washing, Cooking)

toggles.Has(Cooking) // true
toggles.Has(Driving) // false
```