web

package
v0.0.0-...-c6a0951 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderWelcomeHTML

func RenderWelcomeHTML(d WelcomeData) []byte

Types

type StaticHandler

type StaticHandler struct {
	// contains filtered or unexported fields
}

func NewStaticHandler

func NewStaticHandler(root string) (*StaticHandler, error)

func (*StaticHandler) ServeHTTP

func (h *StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*StaticHandler) SetWelcome

func (h *StaticHandler) SetWelcome(p WelcomeProvider)

type WelcomeData

type WelcomeData struct {
	ServeDir      string
	HTTPURL       string
	DevToolsPort  int
	DevToolsWSURL string
	AutoReload    bool
	AppMode       bool
}

type WelcomeProvider

type WelcomeProvider func() WelcomeData

Jump to

Keyboard shortcuts

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