static

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package static embeds and serves frontend assets (CSS, JS, vendor files).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAll

func CopyAll(dest string) error

CopyAll writes all embedded assets into the destination directory (relative layout preserved).

func FS

func FS() fs.FS

FS exposes the embedded static assets.

func HTTP

func HTTP() http.FileSystem

HTTP returns an http.FileSystem backed by the embedded assets.

func Has

func Has(name string) bool

Has reports whether the given relative path exists in the embedded assets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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