server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a development HTTP server with WebSocket live reload.

func New

func New(publicDir, contentDir string, port int, onRebuild func() error) *Server

New creates a new development server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server and file watcher. Blocks until ctx is cancelled.

Jump to

Keyboard shortcuts

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