spa

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(build embed.FS, dir string, index string, gzip bool) (http.Handler, error)

Handler return a file server http handler for single page application. This handler can be mounted on your mux server.

If gzip is set true, handler gzip the response body, for clients which support it. Usually it also can be left to proxies like Nginx, this method is useful when that's undesirable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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