utils

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AmAdmin

func AmAdmin() bool

func EasyHash

func EasyHash(long bool) string

EasyHash returns a string with length 6 bytes

func ExtractIP

func ExtractIP(s string) string

func ExtractSettings

func ExtractSettings(obj interface{}, data interface{}) error

func GenerateCert

func GenerateCert(hostname string) (tls.Certificate, error)

func GenerateCertAndKey

func GenerateCertAndKey(host string) (string, string, error)

func GetAppConfigDir added in v1.3.1

func GetAppConfigDir(appName string) (string, error)

func GetNetworks

func GetNetworks() ([]network, error)

func IsDevMode

func IsDevMode() bool

func MD5

func MD5(content string) string

func PrintDebug

func PrintDebug(f string, args ...interface{})

func QueryArray added in v1.3.1

func QueryArray(q url.Values, key string) []string

func ToJSON added in v1.3.1

func ToJSON(any interface{}) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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