util

package
v0.0.0-...-a709619 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, from, to string) error

func LoadBinary

func LoadBinary[T any](filename string) (t T, err error)

func NewReaderCtx

func NewReaderCtx(ctx context.Context, r io.Reader) io.Reader

func RemoveFile

func RemoveFile(filename string) error

func SaveBinary

func SaveBinary[T any](filename string, t T) error

Types

type ContextReader

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

func (*ContextReader) Read

func (r *ContextReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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