summary refs log tree commit diff stats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 14 insertions, 0 deletions
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))
+}