util

package
v1.5.37 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 14 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedName added in v1.5.18

func AllowedName(name string) error

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 Contains added in v1.5.30

func Contains[T comparable](elements []T, v T) bool

func CopyFile added in v1.5.0

func CopyFile(src string, dst string) error

CopyFile - Copy a file from src to dst

func DeflateBuf added in v1.5.22

func DeflateBuf(data []byte) []byte

DeflateBuf - Deflate a buffer using BestCompression (9)

func PreludeDecrypt added in v1.5.16

func PreludeDecrypt(data []byte, key []byte) []byte

PreludeDecrypt a command

func PreludeEncrypt added in v1.5.16

func PreludeEncrypt(data []byte, key []byte, iv []byte) []byte

PreludeEncrypt the results

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