wavefilemap

package
v0.85.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package wavefilemap models mappings from source public assets to built output artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMap

type FileMap map[string]FileVal

FileMap maps source public asset paths to built artifact metadata.

func Clone

func Clone(fileMap FileMap) FileMap

Clone returns a defensive copy of one file map.

func (FileMap) Lookup

func (fileMap FileMap) Lookup(
	original string,
	prefix string,
) (url string, found bool)

Lookup resolves a source public asset path to its built public URL.

It supports both raw lookup keys and keys that already include the configured public path prefix.

type FileVal

type FileVal struct {
	DistName    string
	ContentHash string
	IsPrehashed bool
}

FileVal describes a single built public asset mapping entry.

Jump to

Keyboard shortcuts

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