Documentation
¶
Overview ¶
* @Date: 2023-07-20 09:34:46 * @LastEditTime: 2023-07-20 10:26:35 * @Description:
* @Date: 2023-07-20 10:23:00 * @LastEditTime: 2023-07-20 10:23:01 * @Description:
* @Date: 2023-09-07 16:40:46 * @LastEditTime: 2023-09-07 16:40:47 * @Description:
Index ¶
- func Compare(a, b interface{}) int
- func CompareNumber(a, b interface{}) int
- func CompareString(a, b interface{}) int
- func ConvertToIntIP(ip string) (int, error)
- func GetExternalIP() string
- func GetIntranetIP() string
- func GetLastChars(str string, num int) string
- func GetLocalIpToInt() (int, error)
- func GetLocalMacAddr() (string, error)
- func Getenv(key string, defaults ...string) string
- func GetenvMap() map[string]string
- func If(cond bool, val1, val2 interface{}) interface{}
- func IsLinux() bool
- func IsMac() bool
- func IsWin() bool
- func Len(s string) int
- func Parse(obj interface{}, path string) interface{}
- func Replace(s string, replace map[string]string) string
- func Setenv(key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastChars ¶ added in v0.0.3
func GetLocalMacAddr ¶
GetLocalMacAddr @Description: get local mac address @return string @return error @author cx
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.