Documentation
¶
Index ¶
- Variables
- func CompressFile(path string, algo CompressionType) (string, int64, error)
- func GetenvOrDefault(key, fallback string) string
- func GetenvOrDefaultInt64(key string, fallback int64) int64
- func OpenDecompressionReader(path string, algo CompressionType) (io.ReadCloser, error)
- func PrintDuration(start time.Time)
- func PrintSuccess(title string)
- type CompressionType
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 GetenvOrDefaultInt64 ¶
func OpenDecompressionReader ¶
func OpenDecompressionReader(path string, algo CompressionType) (io.ReadCloser, error)
func PrintDuration ¶
func PrintSuccess ¶
func PrintSuccess(title string)
Types ¶
type CompressionType ¶
type CompressionType string
const ( CompressionNone CompressionType = "none" CompressionGzip CompressionType = "gzip" CompressionZstd CompressionType = "zstd" )
Click to show internal directories.
Click to hide internal directories.