Versions in this module Expand all Collapse all v2 v2.0.0 Nov 9, 2021 Changes in this version + func ToString(id ID) (string, error) + func UseHash(hasher Hash) + type Hash interface + Decode func([]byte) (ID, error) + Encode func(ID) ([]byte, error) + type HashID struct + MinLength int + Salt string + func NewHashID(salt string, minlen int) *HashID + func (hasher *HashID) Decode(data []byte) (ID, error) + func (hasher *HashID) Encode(id ID) ([]byte, error) + type ID uint64 + func FromString(id string) (ID, error) + func (hideid *ID) Scan(value interface{}) error + func (hideid *ID) UnmarshalJSON(data []byte) error + func (hideid ID) MarshalJSON() ([]byte, error) + func (hideid ID) Value() (driver.Value, error) Other modules containing this package github.com/emvi/hide