Add empty web class for the upcoming build-in web server
This commit is contained in:
parent
450765145b
commit
ab54ace0d2
4
dau.go
4
dau.go
@ -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
8
web/web.go
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
package web
|
||||||
|
|
||||||
|
// web server for the discord-auto-upload package
|
||||||
|
|
||||||
|
// Init - start the web server
|
||||||
|
func Init() {
|
||||||
|
return
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user