assets

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MuambaHTTPHandler added in v0.0.3

func MuambaHTTPHandler() http.Handler

MuambaHTTPHandler serves only the immutable files embedded in this Margo build. Paths are their repository-independent embedded paths, for example /mermaid/11.16.1/mermaid.esm.min.mjs.

func MuambaHash

func MuambaHash(resource, download string) (string, bool)

func MuambaOpen

func MuambaOpen(resource, download string) (fs.File, error)

Types

type MuambaDownload

type MuambaDownload struct {
	Name      string
	URL       string
	Path      string
	Integrity string
	Hash      string
}

type MuambaResource

type MuambaResource struct {
	Name      string
	Version   string
	Downloads []MuambaDownload
}

func MuambaResourceByName

func MuambaResourceByName(name string) (MuambaResource, bool)

func MuambaResources

func MuambaResources() []MuambaResource

Jump to

Keyboard shortcuts

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