diff options
Diffstat (limited to 'cmd/sparkled')
| -rw-r--r-- | cmd/sparkled/main.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/sparkled/main.go b/cmd/sparkled/main.go new file mode 100644 index 0000000..893f708 --- /dev/null +++ b/cmd/sparkled/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "log" + "net/http" + + "github.com/xlgmokha/x/pkg/env" + "gitlab.com/mokhax/sparkled/pkg/web" +) + +func main() { + log.Fatal(http.ListenAndServe( + env.Fetch("BIND_ADDR", ":http"), + web.NewServer(nil), + )) +} |
