{"id":50009,"library":"munnerz-goautoneg","title":"Go HTTP Negotiate","description":"Implements HTTP content negotiation using the Accept header, enabling server-driven content type selection.","status":"active","version":"0.0.0-20191010083416-a7dc8b61c822","language":"go","source_language":null,"source_url":"https://github.com/munnerz/goautoneg","tags":["http","content-negotiation","accept-header"],"install":[{"cmd":"go get github.com/munnerz/goautoneg","lang":"bash","label":"Install github.com/munnerz/goautoneg"}],"dependencies":[],"imports":[{"symbol":"goautoneg","correct":"github.com/munnerz/goautoneg"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/munnerz/goautoneg\"\n)\n\nfunc main() {\n\taccept := \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\"\n\talternatives := []string{\"text/html\", \"application/json\"}\n\tchosen := goautoneg.Negotiate(accept, alternatives)\n\tfmt.Println(chosen)\n}","lang":"go","description":"Negotiates the best content type from an Accept header."},"warnings":[],"env_vars":null,"search_vec":"'accept':10,24 'accept-head':23 'content':6,16,21 'content-negoti':20 'driven':15 'enabl':12 'go':1 'header':11,25 'http':2,5,19 'implement':4 'negoti':3,7,22 'select':18 'server':14 'server-driven':13 'type':17 'use':8","created_at":"2026-06-15T04:36:24.642519+00:00","updated_at":"2026-06-15T04:36:24.642519+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/munnerz/goautoneg","github":"https://github.com/munnerz/goautoneg","docs":"https://pkg.go.dev/github.com/munnerz/goautoneg#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","utility"],"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}}