Skip to content

Commit

Permalink
Big Bang!
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Apr 18, 2023
0 parents commit 5560914
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module sandbox/hello-web

go 1.20
Binary file added hello-web
Binary file not shown.
16 changes: 16 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"fmt"
"log"
"net/http"
)

func main() {
handler := http.HandlerFunc(Server)
log.Fatal(http.ListenAndServe(":8080", handler))
}

func Server(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "sandbox")
}

0 comments on commit 5560914

Please sign in to comment.