utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsSha256

func AsSha256(o interface{}) string

AsSha256 as Sha256

func FileIsExist

func FileIsExist(file string) (bool, error)

FileIsExist is a function to check FileIsExist

func GenSemVersion added in v0.2.0

func GenSemVersion(v string) string

GenSemVersion generate semversion

func GenerateClientKey

func GenerateClientKey() string

GenerateClientKey generate ClientKey

func GeneratePassword

func GeneratePassword() string

GeneratePassword generate password

func GenerateRegistrationActivationCode

func GenerateRegistrationActivationCode() string

GenerateRegistrationActivationCode generate RegistrationActivationCode

func GenerateSecretKey

func GenerateSecretKey() string

GenerateSecretKey generate SecretKey

func GenerateUUID

func GenerateUUID() string

GenerateUUID is function to generate UUID (string)

func GetCurrentIP added in v0.2.0

func GetCurrentIP() string

GetCurrentIP get current IP Address from this host

func GetHostName added in v0.2.0

func GetHostName() string

GetHostName get current hostname from this host

func MD5

func MD5(str []byte) string

MD5 set MD5

Types

This section is empty.

Jump to

Keyboard shortcuts

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