bytesx

package
v0.27.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 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