From d894163d54eb712fe2ef2a0020618a616856093e Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 21 May 2021 16:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E7=9A=84cmd=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.go diff --git a/main.go b/main.go new file mode 100644 index 0000000..82daf76 --- /dev/null +++ b/main.go @@ -0,0 +1,15 @@ +package main + +import ( + "log" + "msw-open-music/internal/pkg/api" +) + +func main() { + api, err := api.NewAPI("/tmp/test.sqlite3", ":8080") + if err != nil { + log.Fatal(err) + } + log.Println("Started") + log.Fatal(api.Server.ListenAndServe()) +}