Documentation ¶
Index ¶
- func EncryptPassword(password, salt string) string
- func FileIsExisted(filename string) bool
- func GetCityByIp(ip string) string
- func GetClientIp(ctx context.Context) string
- func GetDomain(ctx context.Context) string
- func GetLocalIP() (ip string, err error)
- func GetPid() int
- func GetRandomUUID() string
- func GetUserAgent(ctx context.Context) string
- func ParseFilePath(pathStr string) (fileName string, fileType string)
- func ReadMachineID() []byte
- func WriteToFile(fileName string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomUUID ¶
func GetRandomUUID() string
func ParseFilePath ¶
解析路径获取文件名称及后缀
func ReadMachineID ¶
func ReadMachineID() []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.