serve

package
v0.0.0-...-474eaa9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Subcommand is the name of the subcommand.
	Subcommand = "serve"

	// Short is the short description of the subcommand.
	Short = "Serve the application"
)

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Command returns a new instance of the serve command.

func Serve

func Serve(cmd *cobra.Command, _ []string) error

Serve is a function that starts the server and handles incoming requests. It initializes the HTML template engine, sets up routes, and listens on port 8080. The function returns an error if there is an issue starting the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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