17 lines
264 B
Go
17 lines
264 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
"github.com/a-h/templ"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
http.Handle("/", templ.Handler(root()))
|
||
|
http.Handle("/noheader", templ.Handler(hello("12b et mrflos")))
|
||
|
|
||
|
fmt.Println("Listening on :3000")
|
||
|
http.ListenAndServe(":3000", nil)
|
||
|
}
|