tool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const EndLine = `
--------------------------------- Gov End ---------------------------------
`
View Source
const StartLine = `
-------------------------------- Gov Start --------------------------------
`

Variables

This section is empty.

Functions

func DeCompressGzip added in v0.0.9

func DeCompressGzip(gzipFile string, dstPath string) error

DeCompressGzip Gzip解压文件 @params gzipFile string 压缩文件路径 @params dstPath string 解压后的文件夹路径 @return error 错误信息

func DeCompressZip

func DeCompressZip(zipFile string, dstPath string) error

DeCompressZip Zip解压文件 @params zipFile string 压缩文件路径 @params dstPath string 解压后的文件夹路径 @return error 错误信息

func GetRegistryValue

func GetRegistryValue(name string) (string, error)

GetRegistryValue 获取注册表键值 @params name string 键名 @return string 键值 @return error 错误信息

func MathSha256

func MathSha256(data []byte) string

Math data sha356 value

func SetRegistryValue

func SetRegistryValue(name string, value string, valType int) error

SetRegistryValue 设置注册表键值 @params name string 键名 @params value string 键值 @params valType int 值类型(1-字符串值,2-可扩充字符串值) @return error 错误信息

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

日志对象

var L Log = Log{
	// contains filtered or unexported fields
}

实例化日志

func (*Log) Error

func (l *Log) Error(format string, val ...interface{})

error log

func (*Log) Info

func (l *Log) Info(format string, val ...interface{})

Info log

func (*Log) Success

func (l *Log) Success(format string, val ...interface{})

Success log

func (*Log) Trace

func (l *Log) Trace(format string, val ...interface{})

Trace log

func (*Log) Warn

func (l *Log) Warn(format string, val ...interface{})

Warning log

Jump to

Keyboard shortcuts

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