utils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile added in v0.2.0

func DownloadFile(filepath string, url string) error

DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.

func FileChecksum added in v0.6.0

func FileChecksum(path string) (string, error)

FileChecksum reads a file and return the Adler32 checksum of its data as a string

func PathExists

func PathExists(path string) (exists bool)

func Touch added in v0.6.0

func Touch(path string, atime, mtime time.Time) error

Touch updates the atime and mtime of a file, after creating it if it doesn't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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