assets

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

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

Types

type AssetFileReader added in v0.7.0

type AssetFileReader struct {
	// contains filtered or unexported fields
}

func (*AssetFileReader) Read added in v0.7.0

func (s *AssetFileReader) Read() (fs.File, error)

type AssetKey

type AssetKey string
const (
	WebPackConfig    AssetKey = "base.config.js"
	WebPackSWCConfig AssetKey = "swc-base.config.js"
	HotReload        AssetKey = "hotreload.js"
	Tests            AssetKey = "orbit_test.go"
	PrimaryPackage   AssetKey = "orbit.go"
	SSRProtoFile     AssetKey = "com.proto"
	JsWebPackConfig  AssetKey = "jsbase.config.js"
)

type AssetMap

type AssetMap map[AssetKey]fs.DirEntry

func AssetKeys

func AssetKeys() (AssetMap, error)

func (AssetMap) AssetEntry added in v0.7.0

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

func (AssetMap) AssetKey

func (m AssetMap) AssetKey(key AssetKey) *AssetFileReader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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