{"id":50197,"library":"mitchellh-hashstructure","title":"hashstructure","description":"Package hashstructure provides a way to generate hash values for arbitrary Go values, useful for caching and deduplication.","status":"active","version":"1.1.0","language":"go","source_language":null,"source_url":"https://github.com/mitchellh/hashstructure","tags":["hash","struct","caching","deduplication"],"install":[{"cmd":"go get github.com/mitchellh/hashstructure","lang":"bash","label":"Install github.com/mitchellh/hashstructure"}],"dependencies":[],"imports":[{"symbol":"hashstructure","correct":"github.com/mitchellh/hashstructure"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/mitchellh/hashstructure\"\n)\n\nfunc main() {\n\ttype Person struct {\n\t\tName string\n\t\tAge  int\n\t}\n\thash, _ := hashstructure.Hash(Person{Name: \"Alice\", Age: 30}, nil)\n\tfmt.Println(hash)\n}","lang":"go","description":"Hashes a struct and prints the hash value."},"warnings":[],"env_vars":null,"search_vec":"'arbitrari':12 'cach':17,22 'dedupl':19,23 'generat':8 'go':13 'hash':9,20 'hashstructur':1,3 'packag':2 'provid':4 'struct':21 'use':15 'valu':10,14 'way':6","created_at":"2026-06-15T04:43:54.540802+00:00","updated_at":"2026-06-15T04:43:54.540802+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/mitchellh/hashstructure","github":"https://github.com/mitchellh/hashstructure","docs":"https://pkg.go.dev/github.com/mitchellh/hashstructure#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}}