utils

package
v0.0.0-...-bb263ce Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src string, tgt string) error

CopyFile copies a file from src and tgt.

If tgt ends with /, it is assumed to point to a directory, and the same file name from src is appended.

func DownloadFile

func DownloadFile(url string, path string) error

DownloadFile downloads a file from the given url and saves it to the given path.

func SaveFile

func SaveFile(b []byte, tgt string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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