statics

package
v4.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetsLocalDir added in v4.0.1

func AssetsLocalDir(path string) (string, error)

AssetsLocalDir returns the location of the assets if they physically exist

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