webstatic

package
v0.0.0-...-106ba19 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

webstatic embeds a filesystem for common static files needed across html pages.

Index

Constants

This section is empty.

Variables

View Source
var (

	// StaticFS is everything in the static/ directory, with the first static/ stripped.
	StaticFS, _ = fs.Sub(staticFS, "static")
)

Functions

func Register

func Register(reg Registrar)

Registers the individual files with their matching paths.

Types

type Registrar

type Registrar interface {
	Handle(string, http.Handler)
}

Registrar is the interface used by Register, usually a http.ServeMux

Jump to

Keyboard shortcuts

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