xutils

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDecoderNotFound = errors.New("image decoder not found")

Functions

func BuildAddr

func BuildAddr(host, port string) string

func Copy

func Copy(srcFile, dstFile string) error

func CreateIfNotExits

func CreateIfNotExits(fpath string) error

func Die

func Die(args ...any)

func FileExists

func FileExists(dpath, file string) bool

func GeneratePreview

func GeneratePreview(input []byte, filename string) ([]byte, error)

func GenerateRandomString

func GenerateRandomString(n int) (string, error)

func GetLocalIPs

func GetLocalIPs() []string

Types

type TempFile

type TempFile struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

func NewTempFile

func NewTempFile(path string, file *os.File) *TempFile

func (*TempFile) Close

func (zr *TempFile) Close() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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