internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger     = log.New(os.Stderr, "ch: ", log.LstdFlags|log.Lshortfile)
	Warn       = log.New(os.Stderr, "WARN: ch: ", log.LstdFlags|log.Lshortfile)
	Deprecated = log.New(os.Stderr, "DEPRECATED: ch: ", log.LstdFlags|log.Lshortfile)
)

Functions

func Bytes

func Bytes(s string) []byte

StringToBytes converts string to byte slice.

func MakeSliceNextElemFunc

func MakeSliceNextElemFunc(v reflect.Value) func() reflect.Value

func RetryBackoff

func RetryBackoff(minBackoff, maxBackoff time.Duration) time.Duration

func Sleep

func Sleep(ctx context.Context, dur time.Duration) error

func String

func String(b []byte) string

BytesToString converts byte slice to string.

func Unwrap

func Unwrap(err error) error

Types

type Flag

type Flag uint64

func (Flag) Has

func (flag Flag) Has(other Flag) bool

func (*Flag) Remove

func (flag *Flag) Remove(other Flag)

func (*Flag) Set

func (flag *Flag) Set(other Flag)

Directories

Path Synopsis
* COPY from https://github.com/zentures/cityhash/
* COPY from https://github.com/zentures/cityhash/

Jump to

Keyboard shortcuts

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