helper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiB = 1024
	MiB = KiB * 1024
	GiB = MiB * 1024
	TiB = GiB * 1024
)

Variables

This section is empty.

Functions

func CheckFatal

func CheckFatal(err error)

func CloseWithErr

func CloseWithErr(closer io.Closer, prevErr *error)

func FileExists

func FileExists(path string) bool

func IsDir

func IsDir(path string) bool

func Must

func Must[T any](val T, err error) T

func MustRelPath

func MustRelPath(path string) string

func Ptr

func Ptr[T any](v T) *T

func ReadXML

func ReadXML(r io.ReadCloser, dst any) error

func TildePath

func TildePath(path string) string

func WriteXMLResponse

func WriteXMLResponse(w http.ResponseWriter, status int, v any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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