Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 462 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 462 Bytes

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