util

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: GPL-3.0 Imports: 8 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountBinary

func ByteCountBinary(b int64) string

ByteCountBinary - Pretty print byte size

func ChmodR

func ChmodR(path string, filePerm, dirPerm os.FileMode) error

ChmodR - Recursively chmod

func CopyFile added in v1.5.0

func CopyFile(src string, dst string) error

CopyFile - Copy a file from src to dst

func GunzipBuf added in v1.5.0

func GunzipBuf(data []byte) []byte

GunzipBuf - Gunzip a buffer

func GzipBuf added in v1.5.0

func GzipBuf(data []byte) []byte

GzipBuf - Gzip a buffer

func ReadFileFromTarGz added in v1.5.0

func ReadFileFromTarGz(tarGzFile string, tarPath string) ([]byte, error)

ReadFileFromTarGz - Read a file from a tar.gz file in-memory

func ResolvePath added in v1.5.0

func ResolvePath(in string) string

ResolvePath - Resolve a path from an assumed root path

Types

This section is empty.

Directories

Path Synopsis
basex
Package basex provides fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression.
Package basex provides fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression.
Package lib leakbuf.go is stolen form ss
Package lib leakbuf.go is stolen form ss

Jump to

Keyboard shortcuts

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