Documentation ¶ Overview ¶ Package file implements utilities to read files from various backends. Index ¶ func ModTime(fname string) (time.Time, error) func ReadFile(fname string) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ModTime ¶ added in v0.11.3 func ModTime(fname string) (time.Time, error) ModTime returns file's modified timestamp. 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. Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.