os

package
v0.0.0-...-1a8a335 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct{}

Filesystem implements Filesystem interface

func (Filesystem) Mkdir

func (Filesystem) Mkdir(name string, perm os.FileMode) error

Mkdir creates a new directory with the specified name and permission bits

func (Filesystem) Open

func (Filesystem) Open(name string) (filesystem.File, error)

Open opens the named file for reading

func (Filesystem) ReadFile

func (Filesystem) ReadFile(filename string) ([]byte, error)

ReadFile reads a file and returns the contents

func (Filesystem) Stat

func (Filesystem) Stat(name string) (os.FileInfo, error)

Stat returns a FileInfo describing the named file

func (Filesystem) WriteFile

func (Filesystem) WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile reads a file and returns the contents

Jump to

Keyboard shortcuts

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