web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

web/build.go

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS

Functions

func AssetHandler

func AssetHandler(prefix, root string) http.Handler

AssetHandler returns an http.Handler that will serve files from the Assets embed.FS. When locating a file, it will strip the given prefix from the request and prepend the root to the filesystem lookup: typical prefix might be /web/, and root would be build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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