cmd

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToJpg

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

ByteToJpg 字节转jpg

func ByteToPng

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

ByteToPng 字节转png

func GetLinuxMACAddress

func GetLinuxMACAddress() (string, error)

GetLinuxMACAddress 获取mac

func GetLocalIP

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

func GetMAC() string

获取wlan0的MAC

func HomeDir

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

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

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

func MD5Sum

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