xtl

package
v1.9.82 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeFileExt added in v1.9.19

func ChangeFileExt(sfile string, newext string) string

ChangeFileExt #

func CopyFile added in v1.9.3

func CopyFile(src, dst string) (int, error)

CopyFile with bufferig #

func FileExists added in v1.9.3

func FileExists(filename string) bool

FileExists #

func Gunzip added in v1.7.8

func Gunzip(data *string) ([]byte, error)

Gunzip #

func GunzipBytes added in v1.7.8

func GunzipBytes(src *[]byte, dst *[]byte) error

GunzipBytes #

func GunzipFile added in v1.7.8

func GunzipFile(fromFile string, toFile string) error

GunzipFile #

func Gzip added in v1.7.8

func Gzip(data *[]byte) (string, error)

Gzip string

func GzipBytes added in v1.7.8

func GzipBytes(data *[]byte) []byte

GzipBytes #

func GzipFile added in v1.7.8

func GzipFile(fileName string) (bool, error)

GzipFile #

func LoadFiles added in v1.9.4

func LoadFiles(path, match string) (*[]FileInfo, error)

LoadFiles #

func LoadStructFromFile added in v1.9.38

func LoadStructFromFile(sFile string, v interface{}, fu FuncUnMarshal) error

LoadStructFromFile #

func MoveFile added in v1.9.3

func MoveFile(src string, dst string) error

MoveFile #

func SaveStructToFile added in v1.9.38

func SaveStructToFile(sFile string, v interface{}, fu FuncMarshal) error

SaveStructToFile #

func StartProc

func StartProc(args ...string) (p *os.Process, err error)

StartProc # start process

Types

type FileData added in v1.9.37

type FileData struct {
	FileName string
	Size     int64
	Time     int64
	Data     []byte
}

FileData #

func LoadFile added in v1.9.37

func LoadFile(sfile string) (*FileData, error)

LoadFile #

func (*FileData) UTCTime added in v1.9.37

func (fd *FileData) UTCTime() string

UTCTime #

type FileInfo added in v1.9.4

type FileInfo struct {
	FileName string
	Size     int64
	Time     time.Time
}

FileInfo #

type FuncMarshal added in v1.9.38

type FuncMarshal func(v interface{}) (io.Reader, error)

FuncMarshal #

type FuncUnMarshal added in v1.9.38

type FuncUnMarshal func(r io.Reader, v interface{}) error

FuncUnMarshal #

Jump to

Keyboard shortcuts

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