Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + const DisableMetamorphicEnvVar + const RaceEnabled + var ErrIntOverflowUnresolvedAddr = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthUnresolvedAddr = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupUnresolvedAddr = fmt.Errorf("proto: unexpected end of group") + var TestAddr = NewUnresolvedAddr("tcp", "127.0.0.1:0") + func CRC32(data []byte) uint32 + func CombineUnique[T constraints.Ordered](a, b []T) []T + func ConstantWithMetamorphicTestBool(name string, defaultValue bool) bool + func ConstantWithMetamorphicTestBoolWithoutLogging(name string, defaultValue bool) bool + func ConstantWithMetamorphicTestChoice(name string, defaultValue interface{}, otherValues ...interface{}) interface + func ConstantWithMetamorphicTestRange(name string, defaultValue, min, max int) int + func ConstantWithMetamorphicTestValue(name string, defaultValue, metamorphicValue int) int + func EnableRacePreemptionPoints() func() + func EqualPtrFields(src, dst reflect.Value, prefix string) []string + func ExpandTabsInRedactableBytes(s redact.RedactableBytes) (redact.RedactableBytes, error) + func Filter[T any](collection []T, predicate func(T) bool) []T + func GetSingleRune(s string) (rune, error) + func GetSmallTrace(skip int) redact.RedactableString + func IsMetamorphicBuild() bool + func MapFrom[T any, K comparable, V any](collection []T, fn func(T) (K, V)) map[K]V + func Map[T, K any](collection []T, fn func(T) K) []K + func MoveTopKToFront(data sort.Interface, k int) + func Pluralize(n int64) string + func RacePreempt() + func RandString(rng *rand.Rand, length int, alphabet string) string + func RemoveTrailingSpaces(input string) string + func ToLowerSingleByte(b byte) byte + func TruncateString(s string, maxRunes int) string + type EveryN struct + N time.Duration + func Every(n time.Duration) EveryN + func (e *EveryN) ShouldProcess(now time.Time) bool + type FNV64 struct + func MakeFNV64() FNV64 + func (f *FNV64) Add(c uint64) + func (f *FNV64) Init() + func (f *FNV64) IsInitialized() bool + func (f *FNV64) Sum() uint64 + type FastIntMap struct + func (m *FastIntMap) Set(key, val int) + func (m *FastIntMap) Unset(key int) + func (m FastIntMap) ContentsIntoBuffer(buf *bytes.Buffer) + func (m FastIntMap) Copy() FastIntMap + func (m FastIntMap) Empty() bool + func (m FastIntMap) ForEach(fn func(key, val int)) + func (m FastIntMap) Get(key int) (value int, ok bool) + func (m FastIntMap) GetDefault(key int) (value int) + func (m FastIntMap) Len() int + func (m FastIntMap) MaxKey() (_ int, ok bool) + func (m FastIntMap) MaxValue() (_ int, ok bool) + func (m FastIntMap) String() string + type NoCopy struct + func (*NoCopy) Lock() + func (*NoCopy) Unlock() + type StringListBuilder struct + func MakeStringListBuilder(begin, separator, end string) StringListBuilder + func (b *StringListBuilder) Add(w io.Writer, val string) + func (b *StringListBuilder) Addf(w io.Writer, format string, args ...interface{}) + func (b *StringListBuilder) Finish(w io.Writer) + type UnresolvedAddr struct + AddressField string + NetworkField string + var IsolatedTestAddr *UnresolvedAddr + func MakeUnresolvedAddr(network, addr string) UnresolvedAddr + func MakeUnresolvedAddrWithDefaults(network, addr, defaultPort string) UnresolvedAddr + func NewUnresolvedAddr(network, addr string) *UnresolvedAddr + func (*UnresolvedAddr) Descriptor() ([]byte, []int) + func (*UnresolvedAddr) ProtoMessage() + func (a *UnresolvedAddr) Network() string + func (a UnresolvedAddr) IsEmpty() bool + func (a UnresolvedAddr) Resolve() (net.Addr, error) + func (a UnresolvedAddr) String() string + func (m *UnresolvedAddr) Marshal() (dAtA []byte, err error) + func (m *UnresolvedAddr) MarshalTo(dAtA []byte) (int, error) + func (m *UnresolvedAddr) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *UnresolvedAddr) Reset() + func (m *UnresolvedAddr) Size() (n int) + func (m *UnresolvedAddr) Unmarshal(dAtA []byte) error + func (m *UnresolvedAddr) XXX_DiscardUnknown() + func (m *UnresolvedAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UnresolvedAddr) XXX_Merge(src proto.Message) + func (m *UnresolvedAddr) XXX_Size() int + func (m *UnresolvedAddr) XXX_Unmarshal(b []byte) error + func (this *UnresolvedAddr) Equal(that interface{}) bool