package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Packages

Package testtype contains types for testing deephash.

# Functions

ExcludeFields returns an option that modifies the hashing for T to include all struct fields of T except those provided in fields.
Hash returns the hash of v.
HasherForType returns a hash that is specialized for the provided type.
IncludeFields returns an option that modifies the hashing for T to only include the named struct fields.
Update sets last to the hash of v and reports whether its value changed.

# Structs

Hasher is a value passed to [SelfHasher.Hash] that allow implementations to hash themselves in a structured manner.
Sum is an opaque checksum type that is comparable.

# Interfaces

Option is an optional argument to HasherForType.
SelfHasher is implemented by types that can compute their own hash by writing values through the provided [Hasher] parameter.