cmd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 14 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 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 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)

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