tool

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 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, dstDir string) error

DeCompressGzip Gzip解压文件

@var	gzipFile	压缩文件路径
@var	dstDir		解压后的文件夹路径
@return	错误信息

func DeCompressZip

func DeCompressZip(zipFile string, dstDir string) error

DeCompressZip Zip解压文件

@var	zipFile	压缩文件路径
@var	dstDir	解压后的文件夹路径
@return	错误信息

func MathSha256

func MathSha256(data []byte) string

Math data sha356 value

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