ioutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ioutil implements some convenience functions for working with files.

Index

Constants

View Source
const FilePermission = 0731

FilePermission given to all created files and directories

Variables

This section is empty.

Functions

func MkdirAll

func MkdirAll(path string) error

MkdirAll creates all directories in `path` which don't exist.

func ReadIntVector

func ReadIntVector(fname string) ([]int, error)

ReadIntVector reads the elements of an integer vector from a text file, `fname`. Each vector element is on its own line

func WriteFile

func WriteFile(path string, data []byte) error

WriteFile creates all non-existent directories in `path` and writes data to the filename in `path`. The permissions are `FilePermission`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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