assets

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) 2021 Guy A. Ross This source code is licensed under the GNU GPLv3 found in the license file in the root directory of this source tree.

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