package main import ( "fmt" "net/http" "git.apinb.com/senlinai/cloud/templates" "github.com/a-h/templ" ) func main() { component := templates.Hello("Tim") http.Handle("/", templ.Handler(component)) fmt.Println("Listening on :3000") http.ListenAndServe(":3000", nil) }