Documentation
¶
Index ¶
- func ByteToJpg(byteFile []byte, path, name string)
- func ByteToPng(byteFile []byte, path, name string)
- func GetLinuxMACAddress() (string, error)
- func GetLocalIP() (net.IP, error)
- func GetMAC() string
- func HomeDir() (string, error)
- func JpgToBytes(name string) (error, []byte)
- func MD5Sum(mac string) string
- type Input
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalIP ¶
GetLocalIP return the first external-IP4 configured for the first interface connected to this node. https://vimsky.com/examples/detail/golang-ex-net-IP---class.html
func HomeDir ¶
HomeDir returns the home directory for the executing user. This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected. https://88250.b3log.org/golang-get-user-home-dir
Types ¶
Click to show internal directories.
Click to hide internal directories.