bakup

package module
v0.0.0-...-416ebd8 Latest Latest
Warning

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

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

README

go-bakup

Backup file or directory to zip

Develop

go install github.com/dvgamerr/go-bakup@latest

go-bakup 

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ENV = "ENV"

	Trace *log.Logger
)

Functions

func Debug

func Debug(v ...any)

func Debugf

func Debugf(format string, v ...any)

func Debugv

func Debugv(v ...any)

func DisableOutput

func DisableOutput()

func Error

func Error(v ...any)

func Errorf

func Errorf(format string, v ...any)

func Info

func Info(v ...any)

func Infof

func Infof(format string, v ...any)

func Warn

func Warn(v ...any)

func Warnf

func Warnf(format string, v ...any)

Types

type BakupGo

type BakupGo struct {
	Archive     *os.File
	ZipFile     *zip.Writer
	RootInclude bool
	Source      string
	Destination string
	Name        string
}

func (*BakupGo) AppendFile

func (bg *BakupGo) AppendFile(file string) error

func (*BakupGo) Close

func (bg *BakupGo) Close()

func (*BakupGo) CreateZip

func (bg *BakupGo) CreateZip(filename string) error

Jump to

Keyboard shortcuts

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