{"id":49960,"library":"josharian-intern","title":"intern","description":"Package intern provides best-effort string interning to reduce memory usage.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://github.com/josharian/intern","tags":["string","interning","memory"],"install":[{"cmd":"go get github.com/josharian/intern","lang":"bash","label":"Install github.com/josharian/intern"}],"dependencies":[],"imports":[{"symbol":"intern","correct":"github.com/josharian/intern"}],"quickstart":{"code":"import \"github.com/josharian/intern\"\n\nfunc main() {\n    s := intern.Intern(\"hello\")\n    println(s)\n}","lang":"go","description":"Interns a string to a canonical representation."},"warnings":[{"fix":"Do not rely on interning for correctness; use only for optimization.","message":"Interning is best-effort; interned strings may be removed automatically.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'best':6 'best-effort':5 'effort':7 'intern':1,3,9,15 'memori':12,16 'packag':2 'provid':4 'reduc':11 'string':8,14 'usag':13","created_at":"2026-06-15T04:34:43.289545+00:00","updated_at":"2026-06-15T04:34:43.289545+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/josharian/intern","github":"https://github.com/josharian/intern","docs":"https://pkg.go.dev/github.com/josharian/intern#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}}