fs

package
v0.0.0-...-5b64428 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectoryIfNotExists

func CreateDirectoryIfNotExists(dir string, permissions os.FileMode) error

func DirectoryOrFileExists

func DirectoryOrFileExists(dir string) (bool, error)

func OpenForWriting

func OpenForWriting(filename string) (*os.File, error)

OpenForWriting is a convenience function that wraps os.Create, but which returns os.Stdout if the provided filename is "-" or the empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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