http

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAssetHandlers

func AppendAssetHandlers(mux *http.ServeMux, opts *WASMOptions) error

Append all the files in the net/http FS instance containing the embedded WASM assets to an *http.ServeMux instance.

Types

type WASMOptions

type WASMOptions struct {
	Prefix string
}

WASMOptions provides a list of JavaScript and CSS link to include with HTML output.

func DefaultWASMOptions

func DefaultWASMOptions() *WASMOptions

Return a *WASMOptions struct with default paths and URIs.

Jump to

Keyboard shortcuts

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