This commit is contained in:
2026-03-02 11:46:44 +08:00
parent 4d649d1682
commit 62ae7789de
5 changed files with 79 additions and 0 deletions

18
cmd/lab/main.go Normal file
View File

@@ -0,0 +1,18 @@
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)
}