asset

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Version int               `json:"version"`
	Files   map[string]string `json:"files"`
}

Manifest maps logical asset names to emitted paths.

func (Manifest) Resolve

func (manifest Manifest) Resolve(name string) string

Resolve returns the emitted path for a logical asset name.

func (Manifest) URL

func (manifest Manifest) URL(name string) string

URL returns the browser-facing URL for a logical asset name.

Jump to

Keyboard shortcuts

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