commonx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrOrFatal

func CheckErrOrFatal(err error)

func FormatJson

func FormatJson(b []byte) (string, error)

func FormatJsonStr

func FormatJsonStr(src string) (string, error)

func GetMyIp

func GetMyIp() (string, error)

func GetServerStatus

func GetServerStatus() (*system_status.SystemStatus, error)

func GetWords

func GetWords(target string) map[string]bool

func HostName

func HostName() (string, error)

func HostnameOrFatal

func HostnameOrFatal() string

func IsTargetIn

func IsTargetIn(target string, list []string) bool

func JsonString

func JsonString(v interface{}) string

func JsonStringError

func JsonStringError(v interface{}) (string, error)

func MD5

func MD5(str []byte) string

func MD5File

func MD5File(filepath string) (string, error)

func MD5Salt

func MD5Salt(str, salt string) string

func Must

func Must(err error)

func OutputJsonString

func OutputJsonString(v interface{})

func QuitListen

func QuitListen()

func QuitWatch

func QuitWatch()

func SaveMapInCurrentWorkDir

func SaveMapInCurrentWorkDir(name string, m interface{}) error

func StrMd5

func StrMd5(str string) string

Types

This section is empty.

Directories

Path Synopsis
Package system_status ------------------------------------------------------------------------ Modified from gin-vue-admin (https://github.com/flipped-aurora/gin-vue-admin) ------------------------------------------------------------------------
Package system_status ------------------------------------------------------------------------ Modified from gin-vue-admin (https://github.com/flipped-aurora/gin-vue-admin) ------------------------------------------------------------------------

Jump to

Keyboard shortcuts

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