file

package
v0.0.0-...-77ffe55 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package file provides utility file operations.

Index

Constants

This section is empty.

Variables

View Source
var ReadFile = readFile

ReadFile can be updated from the caller to change the API for reading a file.

Functions

func OpenReadFile

func OpenReadFile(name string) io.ReadCloser

OpenReadFile is like os.Open.

func WriteFile

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

WriteFile is like ioutil.WriteFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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