bytesx

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJSONTransform = errors.New("error while transform to json")
)

Functions

func AppendNewLine

func AppendNewLine(p []byte) ([]byte, error)

func Identity

func Identity(b []byte) ([]byte, error)

func SafeWriteToBuffer

func SafeWriteToBuffer(buffer *bytes.Buffer, content, baseDir string, values ...any) error

func StripColor

func StripColor(p []byte) ([]byte, error)

Types

type TransformFunc

type TransformFunc func([]byte) ([]byte, error)

func ToJSONLogFormat

func ToJSONLogFormat(level, action string) TransformFunc

Jump to

Keyboard shortcuts

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