util

package
v0.0.0-...-041bb18 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug = false
)

Functions

func Debugf

func Debugf(format string, args ...interface{})

func Debugging

func Debugging() bool

func Dump

func Dump(prefix string, arg interface{})

func IntMax

func IntMax(a, b int) int

func IntMin

func IntMin(a, b int) int

func Must

func Must(f func() error)

Types

type BytesRingBuffer

type BytesRingBuffer struct {
	// contains filtered or unexported fields
}

func NewStringRingBuffer

func NewStringRingBuffer(capacity int) *BytesRingBuffer

func (*BytesRingBuffer) Add

func (b *BytesRingBuffer) Add(bytes []byte)

func (*BytesRingBuffer) Clear

func (b *BytesRingBuffer) Clear()

func (*BytesRingBuffer) For

func (b *BytesRingBuffer) For(maxLoop int, f func(bytes []byte))

func (*BytesRingBuffer) Length

func (b *BytesRingBuffer) Length() int

Jump to

Keyboard shortcuts

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