file

package
v0.0.0-...-65f6afe Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, filename, modestr string, options *Options) (db.File, error)

Open opens a file.

func ReadFile

func ReadFile(ctx context.Context, filename string) ([]byte, error)

ReadFile reads the contents of the file into memory.

func Stat

func Stat(ctx context.Context, filename string) (os.FileInfo, error)

func WriteFile

func WriteFile(ctx context.Context, filename string, contents []byte) error

WriteFile writes the given contents into a file.

Types

type File

type File struct {
	*os.File
}

func (*File) IO

func (f *File) IO(ctx context.Context) *os.File

type Options

type Options struct {
}

Options may contain some options later.

Jump to

Keyboard shortcuts

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