diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-09-28 03:31:28 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-09-28 03:31:28 -0400 |
| commit | afe79e8430302808004ac2f5b5cc7d21d4d5d170 (patch) | |
| tree | 21609b2e45317f40698c607f56078a4a9bae5196 /bingo-factory.go | |
| parent | 2df8b9bf6448d3a64aaeacf455d0820ce9c8c333 (diff) | |
Add simple http server
Diffstat (limited to 'bingo-factory.go')
| -rw-r--r-- | bingo-factory.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bingo-factory.go b/bingo-factory.go new file mode 100644 index 0000000..98422c2 --- /dev/null +++ b/bingo-factory.go @@ -0,0 +1,19 @@ +package main + +import ( + "fmt" + "net/http" + + "github.com/jpappel/bingo-factory/net" +) + +func main() { + const HOSTNAME string = "" + const PORT int = 8080 + addr := fmt.Sprintf("%s:%d", HOSTNAME, PORT) + + mux := net.NewMux() + + fmt.Printf("Listening on %s\n", addr) + fmt.Print(http.ListenAndServe(addr, mux)) +} |
