asset

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package asset provides an embedded filesystem that serves client-side CSS and JS.

Index

Constants

This section is empty.

Variables

View Source
var (
	// FS is the default filesystem for the server's assets.
	//go:embed index.js index.css
	FS embed.FS

	// FileServer handles asset requests.
	FileServer = http.FileServer(http.FS(FS))
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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