formatter
This commit is contained in:
parent
256eaa63e9
commit
ce8f918846
1 changed files with 1 additions and 3 deletions
4
main.go
4
main.go
|
@ -2,15 +2,13 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
|
||||||
"github.com/a-h/templ"
|
"github.com/a-h/templ"
|
||||||
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
http.Handle("/", templ.Handler(root()))
|
http.Handle("/", templ.Handler(root()))
|
||||||
http.Handle("/noheader", templ.Handler(hello("12b et mrflos")))
|
http.Handle("/noheader", templ.Handler(hello("12b et mrflos")))
|
||||||
|
|
||||||
fmt.Println("Listening on :3000")
|
fmt.Println("Listening on :3000")
|
||||||
http.ListenAndServe(":3000", nil)
|
http.ListenAndServe(":3000", nil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue