infra

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fsys

type Fsys struct{}

Fsys represents operation to filesystem.

func (Fsys) Exist

func (fsys Fsys) Exist(dst string) bool

Exist returns whether file exists.

func (Fsys) Getwd

func (fsys Fsys) Getwd() (string, error)

Getwd returns a current directory path.

func (Fsys) Open

func (fsys Fsys) Open(p string) (io.ReadCloser, error)

Open opens a file.

func (Fsys) Write

func (fsys Fsys) Write(dst string, data []byte) error

Write writes data to a file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳