{"id":16897637,"url":"https://github.com/flouthoc/murmur3-map","last_synced_at":"2025-08-02T09:38:35.152Z","repository":{"id":87027726,"uuid":"165786698","full_name":"flouthoc/murmur3-map","owner":"flouthoc","description":"Go Fast Object Map based on Murmur3 HashFunction","archived":false,"fork":false,"pushed_at":"2019-02-11T11:01:50.000Z","size":2917,"stargazers_count":12,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-26T03:21:31.627Z","etag":null,"topics":["golang","golang-package","hash","hashmap","murmur3","object"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flouthoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-15T04:43:54.000Z","updated_at":"2020-05-07T17:41:04.000Z","dependencies_parsed_at":"2023-05-30T06:30:14.684Z","dependency_job_id":null,"html_url":"https://github.com/flouthoc/murmur3-map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flouthoc/murmur3-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Fmurmur3-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Fmurmur3-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Fmurmur3-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Fmurmur3-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flouthoc","download_url":"https://codeload.github.com/flouthoc/murmur3-map/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Fmurmur3-map/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268363037,"owners_count":24238548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","golang-package","hash","hashmap","murmur3","object"],"created_at":"2024-10-13T17:38:53.130Z","updated_at":"2025-08-02T09:38:35.121Z","avatar_url":"https://github.com/flouthoc.png","language":"Go","readme":"# mumur3-map\n\nGo Fast Object Map based on upon Murmur3\n\n![image](https://raw.githubusercontent.com/flouthoc/murmur3-map/master/static/code.png)\n\n## Usage\n\nExample 1\n\n```go\n\thashmap,_ := murmur3map.NewMap(100)\n\thashmap.Set(\"keyforstring\",\"Sample Text Value\")\n\tval, _ := hashmap.Get(\"keyforstring\")\n\tfmt.Println(val.Value)\n```\n\nExample 2\n\n```go\ntype sampletype struct{\n\n\tname string\n}\n\nfunc main(){\n\n\thashmap,_ := murmur3map.NewMap(100)\n\n\tsampletype_instance := new(sampletype)\n\tsampletype_instance.name = \"my name is flouthoc\"\n\n\thashmap.Set(\"keyforobject\", sampletype_instance)\n\n\tvaltwo,_ := hashmap.Get(\"keyforobject\")\n\tobj2,_ := valtwo.Value.(*sampletype)\n\tfmt.Println(obj2.name)\n}\n\n```\n\n\n## Docs\n\n#### func NewMap(size int) (*MurmurMap, error)\nAllocates a new mumurmap with  given size. Returns struct MurmurMap\n\n#### func (h* MurmurMap) Set(key string, value interface{}) bool\n\nSets k-v pair in map. Keys are supposed to be strings. Values can be anything just be careful when you are fetching them back from the map , see example for usage.\n\n#### func (h *MurmurMap) Get(key string)(*Node, bool)\n\nReturns back the value corresponding to the specified key otherwise returns false.\nJust be sure to cast value back to struct type when you are done with fetching. See Example for usage.\n\n\n\n### References\n* https://en.wikipedia.org/wiki/MurmurHash\n* https://github.com/spaolacci/murmur3\n\n### Feel free to fork or create pull request\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflouthoc%2Fmurmur3-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflouthoc%2Fmurmur3-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflouthoc%2Fmurmur3-map/lists"}