file

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package file implements utilities to read files from various backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(fname string) ([]byte, error)

ReadFile returns file contents as a slice of bytes. It's similar to ioutil's ReadFile, but includes support for files on non-disk locations. For example, files with paths starting with gs:// are assumed to be on GCS, and are read from GCS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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