Help us shape the future of Go! Take the 2026 Go Developer Survey

web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 58 Imported by: 0

Documentation

Overview

Package web is pogi's console: server-rendered HTML with htmx, mounted at /_pogi/.

Index

Constants

This section is empty.

Variables

View Source
var Favicon = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "image/svg+xml")
	w.Header().Set("Cache-Control", "max-age=86400")
	io.WriteString(w, `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="8" fill="#ff8cc6"/><text x="16" y="23" font-size="20" text-anchor="middle" fill="#3d0a26" font-family="sans-serif" font-weight="700">p</text></svg>`)
})

Favicon answers browsers' automatic /favicon.ico so it never reaches S3.

Functions

func New

func New(hub *core.Hub) http.Handler

New builds the console handler.

Types

type UI

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

UI serves the console.

Jump to

Keyboard shortcuts

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