shared

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS

Functions

func FreePort

func FreePort() (int, error)

func OpenBrowser

func OpenBrowser(url string)

func PrintStartupBanner

func PrintStartupBanner(toolName, url string)

func RegisterMetrics added in v1.3.0

func RegisterMetrics(mux *http.ServeMux)

func RegisterUmamiProxy added in v1.3.0

func RegisterUmamiProxy(mux *http.ServeMux)

func ServeAsset

func ServeAsset(fs embed.FS, path, contentType string) http.HandlerFunc

func ServeSharedAsset

func ServeSharedAsset(path, contentType string) http.HandlerFunc

func ServeTemplate

func ServeTemplate(fs embed.FS, path string) func(d IndexData) http.HandlerFunc

Types

type IndexData

type IndexData struct {
	DarkTheme      string
	LightTheme     string
	Version        string
	ThemeData      template.JS
	UmamiEnabled   bool
	UmamiWebsiteID string
}

func NewIndexData added in v1.2.0

func NewIndexData(dark, light, version string) IndexData

Jump to

Keyboard shortcuts

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