all repos — gomponents @ d4a299fe07de5c7b4e6f1657f9474043d6074d8a

HTML components in pure Go

internal/examples/app/http/server.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package http

import (
	"net/http"
)

func Start() error {
	return http.ListenAndServe(":8080", setupRoutes())
}

func setupRoutes() http.Handler {
	mux := http.NewServeMux()

	Home(mux)
	About(mux)

	return mux
}