assets

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(f fs.DirEntry) (fs.File, error)

func WriteFile

func WriteFile(toDir string, f fs.DirEntry) error

Types

type AssetKey

type AssetKey string
const (
	WebPackConfig  AssetKey = "base.config.js"
	HotReload      AssetKey = "hotreload.js"
	Tests          AssetKey = "orbit_test.go"
	PrimaryPackage AssetKey = "orbit.go"
)

type AssetMap

type AssetMap map[AssetKey]fs.DirEntry

func AssetKeys

func AssetKeys() (AssetMap, error)

func (AssetMap) AssetKey

func (m AssetMap) AssetKey(key AssetKey) fs.DirEntry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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