public

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetsPath = "/public/assets/"
	PublicPath = "/public/"
)

Variables

View Source
var AssetsFS embed.FS

AssetsFS should be set by the user application using //go:embed Example in user's code:

//go:embed assets
var AssetsFS embed.FS

func init() {
    public.AssetsFS = AssetsFS
}

Functions

func Asset

func Asset(name string) string

Asset returns the path to a static asset

func FileServerHandler

func FileServerHandler() http.Handler

FileServerHandler returns an HTTP handler for serving embedded static files

Types

This section is empty.

Jump to

Keyboard shortcuts

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