{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/TheDiveO/enumflag","name":"github.com/TheDiveO/enumflag","description":"Package enumflag supplements the Golang CLI flag handling packages spf13/cobra\nand spf13/pflag with enumeration flags.\n\nFor instance, users can specify enum flags as \"--mode=foo\" or \"--mode=bar\",\nwhere \"foo\" and \"bar\" are valid enumeration values. Other values which are not\npart of the set of allowed enumeration values cannot be set and raise CLI flag\nerrors.\n\nApplication programmers then simply deal with enumeration values in form of\nuints (or ints), liberated from parsing strings and validating enumeration\nflags.\n\nUser-defined enum flag types should be derived from \"enumflag.Flag\"; however\nthis is not strictly necessary as long as they can be converted into the\n\"enumflag.Flag\" type. Actually, \"enumflag.Flag\" is just a fancy name for an\n\"uint\". In order to use such user-defined enum flags, simply wrap them using\nenumflag.New.\n\n\n\nUser-defined enum flag types should be derived from \"enumflag.Flag\"; however\nthis is not strictly necessary as long as they can be converted into the\n\"enumflag.Flag\" type. Actually, \"enumflag.Flag\" is just a fancy name for an\n\"uint\". In order to use such user-defined enum flags as flag slices, simply\nwrap them using enumflag.NewSlice.","version":"v0.10.1","softwareVersion":"v0.10.1","license":"https://spdx.org/licenses/Apache-2.0","codeRepository":"https://github.com/TheDiveO/enumflag","issueTracker":"https://github.com/thediveo/enumflag/issues","url":"https://github.com/thediveo/enumflag","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2020-04-11","dateModified":"2020-09-14","datePublished":"2020-09-14","copyrightYear":2020,"downloadUrl":"https://proxy.golang.org/cached-only/github.com/!the!dive!o/enumflag/@v/v0.10.1.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/TheDiveO/enumflag#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/TheDiveO/enumflag"],"https://www.w3.org/ns/activitystreams#likes":35,"https://forgefed.org/ns#forks":5}