web

package module
v0.0.0-...-b1a8576 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 2 Imported by: 0

README

GoWeb

Small and lightweight Golang Web FrameworkMIT LicenseIsues

Authors

Contributing

Contributions are always welcome!

Documentation

Documentation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoute

func AddRoute(pattern string, handler http.HandlerFunc)
Function to register a new route

example: web.AddRoute("/", web.wrap(index)) example wrapper function:

func index() {
	web.RenderHTML(w, "index.html")
}

func Serve

func Serve(port string)

web.serve(port) to serve your website on the specified port

Types

This section is empty.

Jump to

Keyboard shortcuts

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