util

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToByteSlice

func ToByteSlice[T any](obj T) ([]byte, error)

func ToStruct

func ToStruct[T any](data []byte) (T, error)

Types

type BufferpoolExhaustedError

type BufferpoolExhaustedError struct {
	*PetroError
}

type PetroError

type PetroError struct {
	Message string
	Err     error
}

func (*PetroError) Error

func (e *PetroError) Error() string

func (*PetroError) Unwrap

func (e *PetroError) Unwrap() error

Jump to

Keyboard shortcuts

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