helper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNullBytes = errors.New("null bytes detected in input")

Functions

func IsByteArray

func IsByteArray(v any) bool

func IsRootPath

func IsRootPath(path string) bool

func ReplacePathParams

func ReplacePathParams(path string) string

func StringOrString

func StringOrString(s1, s2 string) string

Types

type Writer

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

func NewWriter

func NewWriter() *Writer

func (*Writer) Len

func (w *Writer) Len() int

func (*Writer) Read

func (w *Writer) Read() ([]byte, error)

read lines one by one, deleting them

func (*Writer) ReadJSON

func (w *Writer) ReadJSON(dest any) error

func (*Writer) ReadString

func (w *Writer) ReadString() (string, error)

func (*Writer) Reset

func (w *Writer) Reset()

func (*Writer) Write

func (w *Writer) Write(data []byte) (n int, err error)

func (*Writer) WriteJSON

func (w *Writer) WriteJSON(obj any) (n int, err error)

Jump to

Keyboard shortcuts

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