From 893123ce21c5bf74880fd0ff79d587cbcc1789cf Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Fri, 10 May 2019 02:17:32 -0400 Subject: building the skeleton --- main.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..7477055 --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "log" + "net/http" +) + +func main() { + log.Printf("getwtxt v0.1\n") + + http.HandleFunc("/api", apiHandler) + + log.Fatalln(http.ListenAndServe(":666", nil)) +} -- cgit 1.4.1-2-gfad0