assets

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets

func Assets() fs.FS

Assets returns an fs.FS object pointing to the asset provider.

func ReadFile

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

func UseFilesystem

func UseFilesystem(val bool)

UseFilesystem configures whether to use local filesytem files or embedded ones.

Types

type Config

type Config struct {
	UseFilesystem  bool `help:"Use assets from the filesystem rather then the embedded binary" default:"false"`
	DebugTemplates bool `help:"Enable template debugging (disables caching)" default:"false"`
}

Jump to

Keyboard shortcuts

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