utils

package
v0.0.0-...-d19b8bf Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(s string) bool

func GetUserDataFromString

func GetUserDataFromString(s string) (int, int, error)

GetUserDataFromString retrieves uid and gid from a string. The string have to be in the "user:group" syntax, or just "user".

func IsUrl

func IsUrl(s string) bool

func RandomString

func RandomString(n int) string

func TemplatedString

func TemplatedString(t string, i interface{}) (string, error)

UUIDTemplatedString accepts a template, and renders it with a UUID v4 generated string. E.g. input "foo-{{.}}"

func Touch

func Touch(s string, perms os.FileMode, fs vfs.FS) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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