utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCompression = CompressionNone //CompressionZstd

Functions

func CompressFile

func CompressFile(path string, algo CompressionType) (string, int64, error)

func GetenvOrDefault

func GetenvOrDefault(key, fallback string) string

func GetenvOrDefaultInt64

func GetenvOrDefaultInt64(key string, fallback int64) int64

func OpenDecompressionReader

func OpenDecompressionReader(path string, algo CompressionType) (io.ReadCloser, error)

func PrintDuration

func PrintDuration(start time.Time)

func PrintSuccess

func PrintSuccess(title string)

Types

type CompressionType

type CompressionType string
const (
	CompressionNone CompressionType = "none"
	CompressionGzip CompressionType = "gzip"
	CompressionZstd CompressionType = "zstd"
)

Jump to

Keyboard shortcuts

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