{"id":51261,"library":"c-bata-go-prompt","title":"go-prompt","description":"A library for building interactive command-line prompts in Go, inspired by Python's prompt_toolkit.","status":"active","version":"0.2.6","language":"go","source_language":null,"source_url":"https://github.com/c-bata/go-prompt","tags":["cli","prompt","interactive","terminal"],"install":[{"cmd":"go get github.com/c-bata/go-prompt","lang":"bash","label":"Install github.com/c-bata/go-prompt"}],"dependencies":[],"imports":[{"symbol":"prompt","correct":"github.com/c-bata/go-prompt"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/c-bata/go-prompt\"\n)\n\nfunc completer(d prompt.Document) []prompt.Suggest {\n\treturn []prompt.Suggest{\n\t\t{Text: \"hello\", Description: \"say hello\"},\n\t}\n}\n\nfunc main() {\n\tfmt.Println(\"Type something\")\n\tp := prompt.New(\n\t\tfunc(in string) { fmt.Println(\"You typed:\", in) },\n\t\tcompleter,\n\t)\n\tp.Run()\n}","lang":"go","description":"Minimal example showing a prompt with tab completion."},"warnings":[],"env_vars":null,"search_vec":"'build':7 'cli':21 'command':10 'command-lin':9 'go':2,14 'go-prompt':1 'inspir':15 'interact':8,23 'librari':5 'line':11 'prompt':3,12,19,22 'python':17 'termin':24 'toolkit':20","created_at":"2026-06-15T06:06:48.200945+00:00","updated_at":"2026-06-15T06:06:48.200945+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/c-bata/go-prompt","github":"https://github.com/c-bata/go-prompt","docs":"https://pkg.go.dev/github.com/c-bata/go-prompt#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}