utils

package
v0.0.0-...-f2a416a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPathForFile

func CheckPathForFile(file string) string

func CopyFile

func CopyFile(src string, dst string)

func DaysAgo

func DaysAgo(date string) string

func FileExists

func FileExists(filePath string) bool

func Get

func Get(httpc http.Client, path string) []byte

func GetUnixClient

func GetUnixClient(sock string) http.Client

func IsRoot

func IsRoot() bool

func ParseDate

func ParseDate(date string) string

func SHA256File

func SHA256File(path string) (string, error)

func ValidateDirectory

func ValidateDirectory(dir string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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