cmd

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToJpg added in v1.1.0

func ByteToJpg(byteFile []byte, path, name string)

ByteToJpg 字节转jpg

func ByteToPng added in v1.1.0

func ByteToPng(byteFile []byte, path, name string)

ByteToPng 字节转png

func GetLinuxMACAddress added in v1.1.6

func GetLinuxMACAddress() (string, error)

GetLinuxMACAddress 获取mac

func GetLocalIP added in v1.1.0

func GetLocalIP() (net.IP, error)

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 GetMAC added in v1.1.6

func GetMAC() string

获取wlan0的MAC

func HomeDir added in v1.1.0

func HomeDir() (string, error)

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

func JpgToBytes added in v1.1.0

func JpgToBytes(name string) (error, []byte)

JpgToBytes name(/a/b/aaa.jgp)

func MD5Sum added in v1.1.6

func MD5Sum(mac string) string

MakeMD5Sum 生成MD5

Types

type Input

type Input struct {
	Y int //年
	M int //月
	D int //日
	H int //時
}

获取命令行輸入內容

func GetInPut

func GetInPut(s *string) *Input

阳历年月日时數字

Jump to

Keyboard shortcuts

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