1
0
Files
build-push-action/test/go/main.go
T

15 lines
218 B
Go
Raw Permalink Normal View History

2022-12-19 22:06:29 +01:00
package main
import (
2023-04-09 06:33:30 +02:00
"fmt"
"log"
2022-12-19 22:06:29 +01:00
"net/http"
)
func main() {
2023-04-09 06:33:30 +02:00
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, Go!")
2022-12-19 22:06:29 +01:00
})
2023-04-09 06:33:30 +02:00
log.Fatal(http.ListenAndServe(":8080", nil))
2022-12-19 22:06:29 +01:00
}