util

package
v0.0.0-...-c9273ef Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFullyCopied = errors.New("didn't copy entire file from the archive")
)

Functions

func CreateLogFile

func CreateLogFile(username, dir string) (*log.Logger, io.Closer, error)

func ExtractArchive

func ExtractArchive(archivePath string) (string, error)

func IsArchive

func IsArchive(path string) bool

IsArchive returns true if the file at the given path is an archive that can be extracted. Returns false otherwise.

func OpenBrowser

func OpenBrowser(url string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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