util

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveToTarFile added in v0.0.2

func ArchiveToTarFile(path string, tarFileName string) error

func ConvertToUnixTime added in v0.0.9

func ConvertToUnixTime(s string) (timeStamp int64, err error)

func CreateLogger added in v0.0.7

func CreateLogger(w io.Writer, onlyMsg bool) *slog.Logger

func ExtractFileFromTar added in v0.0.2

func ExtractFileFromTar(tarFileName string) (string, error)

func GetHumanSize

func GetHumanSize[T int | int64 | uint64 | uint | uint32 | float64](size T) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳