Documentation
¶
Index ¶
- func Exists(s string) bool
- func GetUserDataFromString(s string) (int, int, error)
- func IsUrl(s string) bool
- func RandomString(n int) string
- func TemplatedString(t string, i interface{}) (string, error)
- func Touch(s string, perms os.FileMode, fs vfs.FS) error
- func WriteTempFile(data []byte, prefix string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserDataFromString ¶
GetUserDataFromString retrieves uid and gid from a string. The string have to be in the "user:group" syntax, or just "user".
func RandomString ¶
func TemplatedString ¶
UUIDTemplatedString accepts a template, and renders it with a UUID v4 generated string. E.g. input "foo-{{.}}"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.