Standard library / hash/maphash
hash/maphash.Hash.Size()
Return the digest length, eight bytes. This is not a cryptographic authentication primitive. Expected stdout: '8\n'.
Formal Syntax & Structure
go syntaxgo
func (h *Hash) Size() intReturn Value
int
Size in bytes.
Working Example
Example Snippetgo
package main
import ( "fmt" "hash/maphash")
func main() { var h maphash.Hash; fmt.Println(h.Size()) }