statik

package
v0.0.0-...-55bacb3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CRC16("github.com/privatix/dapp-openvpn/statik") = 0x8300
	ErrOpenFS errors.Error = 0x8300<<8 + iota
	ErrOpenFile
	ErrReadFile
)

Errors.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(name string) (http.File, error)

OpenFile opens the named file from the embedded filesystem.

func ReadDir

func ReadDir(dirname string) ([]os.FileInfo, error)

ReadDir reads the contents of the directory associated with file and returns a slice of up to n FileInfo values.

func ReadFile

func ReadFile(name string) ([]byte, error)

ReadFile reads a file content from the embedded filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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