Add empty web class for the upcoming build-in web server

This commit is contained in:
Justin Hawkins 2017-07-26 14:24:02 +09:30
parent 450765145b
commit ab54ace0d2
2 changed files with 12 additions and 0 deletions

4
dau.go
View File

@ -23,6 +23,8 @@ import (
"github.com/fogleman/gg" "github.com/fogleman/gg"
"github.com/pborman/getopt" "github.com/pborman/getopt"
"golang.org/x/image/font/inconsolata" "golang.org/x/image/font/inconsolata"
"discord-auto-upload/web"
) )
const currentVersion = "0.6" const currentVersion = "0.6"
@ -47,6 +49,8 @@ func main() {
checkPath(config.path) checkPath(config.path)
checkUpdates() checkUpdates()
web.Init()
log.Print("Waiting for images to appear in ", config.path) log.Print("Waiting for images to appear in ", config.path)
// wander the path, forever // wander the path, forever
for { for {

8
web/web.go Normal file
View File

@ -0,0 +1,8 @@
package web
// web server for the discord-auto-upload package
// Init - start the web server
func Init() {
return
}