hasher

package
v2.3.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(v interface{}, opts ...Option) (hash uint64, err error)

Types

type ErrNotStringer

type ErrNotStringer struct {
	Field string
}

func (*ErrNotStringer) Error

func (ens *ErrNotStringer) Error() string

type Hasher

type Hasher interface {
	Hash() (hash uint64, err error)
}

type Inc

type Inc interface {
	HashInclude(field string, v interface{}) (has bool, err error)
}

type IncMap

type IncMap interface {
	HashIncludeMap(field string, k, v interface{}) (has bool, err error)
}

type Option

type Option func(ops *options)

func IgnoreZeroValue

func IgnoreZeroValue() Option

func SlicesAsSets

func SlicesAsSets() Option

func UseStringer

func UseStringer() Option

func ZeroNil

func ZeroNil() Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL