filesystem

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AssetsPath = "assets"

AssetsPath asset path

Variables

View Source
var FileSystem = packr.New(AssetsPath, AssetsPath)

FileSystem the folder on a disk

Functions

func EnsureFileExist

func EnsureFileExist(path string, content []byte) (bool, error)

EnsureFileExist ensure file exist and file content is the specify content

func Unpack

func Unpack(prefix string) error

Unpack unpack the path with prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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