From addbd2644a689bf74f272f95172c2f54b2d17cca Mon Sep 17 00:00:00 2001 From: LibreHacker Date: Mon, 10 Aug 2020 13:25:25 +0300 Subject: [PATCH] test --- .gitignore | 1 + README.md | 2 +- main.go | 14 ++++++++++++++ makefile | 2 ++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 main.go create mode 100644 makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/README.md b/README.md index 125ea23..3693337 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # OpenPrice - +WIP diff --git a/main.go b/main.go new file mode 100644 index 0000000..3ff70fd --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "fmt" + "net/http" +) + +func main() { + http.HandleFunc("/test", func (w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "test") + }) + + http.ListenAndServe(":8080", nil) +} diff --git a/makefile b/makefile new file mode 100644 index 0000000..d476aff --- /dev/null +++ b/makefile @@ -0,0 +1,2 @@ +all: + go run main.go