Documentation ¶
Index ¶
- func Bytes2String(s []byte) string
- func GetLocalIP() (string, error)
- func Must(err error)
- func Must1[T any](v T, err error) T
- func Must2[T any, P any](v1 T, v2 P, err error) (T, P)
- func MustGetHostname() string
- func MustGetLocalIP() string
- func RandomByte(size int) []byte
- func RandomPass(size int) string
- func RandomString(size int) string
- func SecureRandomString(size int) (s string, err error)
- func StringToBytes(s string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2String ¶
func GetLocalIP ¶
func MustGetHostname ¶
func MustGetHostname() string
func MustGetLocalIP ¶
func MustGetLocalIP() string
func RandomByte ¶
func SecureRandomString ¶
func StringToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.