utils

package
v0.0.0-...-3e46209 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCacheDir

func CreateCacheDir() string

func CreateDir

func CreateDir(cacheDir string, cacheperm os.FileMode)

func InitLogger

func InitLogger() (*log.Logger, *os.File, error)

func IsValidHostname

func IsValidHostname(host string) (string, bool)

func IsValidSubHostname

func IsValidSubHostname(host string) (string, bool)

func StringInSlice

func StringInSlice(a string, list []string) bool

func TokenGenerator

func TokenGenerator() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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