Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + var ErrEmptyPrefix = errors.New("Prefix can't be empty") + var ErrIllegalChar = errors.New("illegal character: ' '") + var ErrNotExist = errors.New("ID does not exist") + type ErrAmbiguousPrefix struct + func (e ErrAmbiguousPrefix) Error() string + type TruncIndex struct + func NewTruncIndex(ids []string) (idx *TruncIndex) + func (idx *TruncIndex) Add(id string) error + func (idx *TruncIndex) Delete(id string) error + func (idx *TruncIndex) Get(s string) (string, error) + func (idx *TruncIndex) Iterate(handler func(id string))