{"id":73602,"library":"peterbourgon-ff-v2","title":"peterbourgon ff/v2","description":"Flags-first package for Go command-line argument parsing with support for environment variables and config files.","status":"active","version":"2.0.1","language":"go","source_language":null,"source_url":"https://github.com/peterbourgon/ff","tags":["flags","cli","configuration","environment"],"install":[{"cmd":"go get github.com/peterbourgon/ff/v2","lang":"bash","label":"Install github.com/peterbourgon/ff/v2"}],"dependencies":[],"imports":[{"symbol":"ff","correct":"github.com/peterbourgon/ff/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"github.com/peterbourgon/ff/v2\"\n)\n\nfunc main() {\n\tfs := flag.NewFlagSet(\"example\", flag.ExitOnError)\n\tvar name string\n\tfs.StringVar(&name, \"name\", \"world\", \"a name\")\n\tff.Parse(fs, os.Args[1:], ff.WithEnvVarPrefix(\"MYAPP\"))\n\tfmt.Printf(\"Hello, %s!\\n\", name)\n}","lang":"go","description":"Parses flags with environment variable support."},"warnings":[],"env_vars":null,"search_vec":"'argument':12 'cli':23 'command':10 'command-lin':9 'config':20 'configur':24 'environ':17,25 'ff/v2':2 'file':21 'first':5 'flag':4,22 'flags-first':3 'go':8 'line':11 'packag':6 'pars':13 'peterbourgon':1 'support':15 'variabl':18","created_at":"2026-06-17T18:52:56.970878+00:00","updated_at":"2026-06-17T18:52:56.970878+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/peterbourgon/ff","github":"https://github.com/peterbourgon/ff","docs":"https://pkg.go.dev/github.com/peterbourgon/ff/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli","config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}