{"id":18723781,"url":"https://github.com/hscells/veil","last_synced_at":"2025-08-03T00:08:01.262Z","repository":{"id":57545887,"uuid":"109092522","full_name":"hscells/veil","owner":"hscells","description":"A sensible and well tested flags and bitmask library for go.","archived":false,"fork":false,"pushed_at":"2017-11-01T07:37:49.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T12:43:19.528Z","etag":null,"topics":["bitmask","flags","go","golang"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/hscells/veil","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hscells.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-01T05:52:22.000Z","updated_at":"2021-07-13T11:45:52.000Z","dependencies_parsed_at":"2022-09-05T10:50:31.196Z","dependency_job_id":null,"html_url":"https://github.com/hscells/veil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fveil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fveil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fveil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fveil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hscells","download_url":"https://codeload.github.com/hscells/veil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239590621,"owners_count":19664524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitmask","flags","go","golang"],"created_at":"2024-11-07T13:51:36.194Z","updated_at":"2025-02-19T03:28:17.121Z","avatar_url":"https://github.com/hscells.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Veil\n\n\n[![GoDoc](https://godoc.org/github.com/hscells/veil?status.svg)](https://godoc.org/github.com/hscells/veil)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hscells/veil)](https://goreportcard.com/report/github.com/hscells/veil)\n[![gocover](http://gocover.io/_badge/github.com/hscells/veil)](https://gocover.io/github.com/hscells/veil)\n\n\n_A sensible and well tested flags and bitmask library for the go language._\n\nVeil can be used anywhere the need for a bit mask (e.g. `1010`) needs to be used\nto represent some state.\n\nFor instance, to find the values for a the mask above:\n\n```go\nfm := FlagsMapFromString([]string{\"a\", \"b\", \"c\", \"d\"}, \"1010\")\nflag, err := fm.Get(\"a\")\nif err != nil {\n    fmt.Println(flag)\n}\n```\n\nA FlagsMap can also be constructed from a slice of `int8`, a slice of `bool`,\nor a map. Please see the [documentation](https://godoc.org/github.com/hscells/veil)\nfor the full reference.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhscells%2Fveil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhscells%2Fveil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhscells%2Fveil/lists"}