{"id":76806,"library":"dflag","title":"dflag","description":"A Go library for defining command-line flags with dynamic behavior.","status":"active","version":"1.9.3","language":"go","source_language":null,"source_url":null,"tags":["flags","command-line","configuration"],"install":[{"cmd":"go get fortio.org/dflag","lang":"bash","label":"Install fortio.org/dflag"}],"dependencies":[],"imports":[{"symbol":"dflag","correct":"fortio.org/dflag"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"fortio.org/dflag\"\n)\n\nfunc main() {\n\tflag := dflag.String(\"name\", \"world\", \"a name\")\n\tfmt.Println(\"Hello, \" + *flag)\n}","lang":"go","description":"Defines a dynamic string flag and prints its value."},"warnings":[],"env_vars":null,"search_vec":"'behavior':13 'command':8,16 'command-lin':7,15 'configur':18 'defin':6 'dflag':1 'dynam':12 'flag':10,14 'go':3 'librari':4 'line':9,17","created_at":"2026-06-17T19:38:36.541780+00:00","updated_at":"2026-06-17T19:38:36.541780+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/fortio/dflag","github":null,"docs":"https://pkg.go.dev/fortio.org/dflag#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"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}}