1
0
Fork 0
mirror of https://github.com/imjasonh/terraform-playground synced 2026-07-08 07:44:57 +00:00
terraform-playground/cf-worker-go/main.go
Jason Hall 91e9eee26b
WIP: cf-worker-go; tf-cloudfuare doesn't work with wasm :(
Signed-off-by: Jason Hall <jason@chainguard.dev>
2023-12-30 15:47:37 -05:00

15 lines
219 B
Go

package main
import (
"fmt"
"net/http"
"github.com/syumai/workers"
)
func main() {
http.HandleFunc("/hello", func(w http.ResponseWriter, req *http.Request) {
fmt.Fprintln(w, "Hello!")
})
workers.Serve(nil)
}