file

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(name string) bool

Exists returns whether or not a file or path exists

func Move

func Move(sourcePath, destPath string) error

Move moves a file from a source path to a destination path This must be used across the codebase for compatibility with Docker volumes and Golang (fixes Invalid cross-device link when using os.Rename)

func Write

func Write(file string, data []byte) error

Write writes selected data to a file or returns an error if it fails. This func also ensures that all files are set to this permission (only rw access for the running user and the group the user is a member of)

func WriteAsCSV

func WriteAsCSV(filename string, records [][]string) error

WriteAsCSV takes a table of records and writes it as CSV

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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