{"id":53152,"library":"golangci-goconst","title":"goconst","description":"Finds repeated strings that could be replaced by a constant in Go source code.","status":"active","version":"0.0.0-20180610141641-041c5f2b40f3","language":"go","source_language":null,"source_url":"https://github.com/golangci/goconst","tags":["linter","static-analysis","code-quality","constants"],"install":[{"cmd":"go get github.com/golangci/goconst","lang":"bash","label":"Install github.com/golangci/goconst"}],"dependencies":[],"imports":[{"symbol":"goconst","correct":"github.com/golangci/goconst"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/golangci/goconst\"\n)\n\nfunc main() {\n\tissues, _ := goconst.Run(\"./...\", nil)\n\tfor _, issue := range issues {\n\t\tfmt.Printf(\"%s:%d: %s\\n\", issue.Pos.Filename, issue.Pos.Line, issue.Str)\n\t}\n}","lang":"go","description":"Runs goconst on the current directory and prints repeated strings."},"warnings":[],"env_vars":null,"search_vec":"'analysi':19 'code':15,21 'code-qu':20 'constant':11,23 'could':6 'find':2 'go':13 'goconst':1 'linter':16 'qualiti':22 'repeat':3 'replac':8 'sourc':14 'static':18 'static-analysi':17 'string':4","created_at":"2026-06-15T07:29:20.482743+00:00","updated_at":"2026-06-15T07:29:20.482743+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/golangci/goconst","github":"https://github.com/golangci/goconst","docs":"https://pkg.go.dev/github.com/golangci/goconst#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-15","next_check":"2026-12-12","install_tag":null}}