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

serve

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:   "serve",
	Usage:  "Serve the built site from the pub directory",
	Action: serveAction,
	Flags: append([]cli.Flag{
		&cli.StringFlag{
			Name:        "pub",
			Aliases:     []string{"p"},
			Usage:       "Path to the pub directory to serve",
			Required:    true,
			Destination: &serveOpts.pubDir,
		},
		&cli.StringFlag{
			Name:        "addr",
			Aliases:     []string{"a"},
			Usage:       "Address to listen on",
			Value:       "localhost:1313",
			Destination: &serveOpts.addr,
		},
	}, logging.Flags...),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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