Skip to content

bavix/features

Repository files navigation

features

Simple implementation of the flags feature.

Usage

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

Supported by

Supported by JetBrains

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages