xutils

package
v0.0.0-...-427d7b6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Zip

func Zip(dst io.Writer, src string) error

Zip 压缩文件或目录

func ZipToFile

func ZipToFile(dst, src string) error

ZipToFile 压缩至文件

Types

type Writer

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

func New

func New(path string) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) SetCons

func (w *Writer) SetCons(b bool)

SetCons 同时输出控制台

func (*Writer) SetMaxAge

func (w *Writer) SetMaxAge(ma int)

SetMaxAge 最大保留天数

func (*Writer) SetMaxSize

func (w *Writer) SetMaxSize(ms int64)

SetMaxSize 单个日志最大容量

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Directories

Path Synopsis
commandline

Jump to

Keyboard shortcuts

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