statics

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssets

func GetAssets(path string) (string, error)

GetAssets returns the location of the assets if they physically exist

func RestoreAssets

func RestoreAssets(dir string, box FS, pg chan float64, excludes ...string) (int, int64, error)

RestoreAssets copies the files from the binary to a hard location on the disk It returns an error, or the total number of files and the total size of all files written

Types

type FS

type FS interface {
	fs.FS
	List() []string
}

func AsFS

func AsFS(box interface{}, sub ...string) FS

type PackrBox

type PackrBox interface {
	List() []string
	Open(name string) (http.File, error)
}

PackrBox avoids pulling in the packr library for everyone, mimicks the bits of packr.Box that we need.

Jump to

Keyboard shortcuts

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