helper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	B  ByteSize = 1
	KB          = B << 10
	MB          = B << 20
	GB          = B << 30
	TB          = B << 40
	PB          = B << 50
	EB          = B << 60
)

Variables

This section is empty.

Functions

func NewTextFileLogger

func NewTextFileLogger(fileName string) (zlog.Logger, error)

func NewTextStdoutLogger

func NewTextStdoutLogger() zlog.Logger

Types

type ByteSize

type ByteSize int64

type BytesBufferPool

type BytesBufferPool interface {
	Get() *bytes.Buffer
	Put(*bytes.Buffer)
}

Jump to

Keyboard shortcuts

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