Standard Library

GoHashMaphash

Go stdlib package — hash/maphash. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Bytes()Neutral
#
Signature
Bytes(seed Seed, b []byte) uint64

Bytes returns the hash of b with the given seed.

.Hash.BlockSize()Neutral
#
Signature
Hash.BlockSize() int

BlockSize returns h's block size.

.Hash.Reset()Neutral
#
Signature
Hash.Reset()

Reset discards all bytes added to h.

.Hash.Seed()Neutral
#
Signature
Hash.Seed() Seed

Seed returns h's seed value.

.Hash.SetSeed()Neutral
#
Signature
Hash.SetSeed(seed Seed)

SetSeed sets h to use seed, which must have been returned by MakeSeed

.Hash.Size()Neutral
#
Signature
Hash.Size() int

Size returns h's hash value size, 8 bytes.

.Hash.Sum()Neutral
#
Signature
Hash.Sum(b []byte) []byte

Sum appends the hash's current 64-bit value to b.

.Hash.Sum64()Neutral
#
Signature
Hash.Sum64() uint64

Sum64 returns h's current 64-bit value, which depends on

.Hash.Write()Neutral
#
Signature
Hash.Write(b []byte) (int, error)

Write adds b to the sequence of bytes hashed by h.

.Hash.WriteByte()Neutral
#
Signature
Hash.WriteByte(b byte) error

WriteByte adds b to the sequence of bytes hashed by h.

Fully-Qualified Names

FQNField
hash/maphashfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # hash/maphash