dip/cmd/dip/dip.go
Paul Lecuq c320cc8133
All checks were successful
continuous-integration/drone/push Build is passing
updated dip, removing packr, updated dependencies, fixes
2022-08-18 01:16:43 +02:00

23 lines
560 B
Go

package main
import (
"git.paulbsd.com/paulbsd/dip/src/config"
"git.paulbsd.com/paulbsd/dip/src/dip"
"git.paulbsd.com/paulbsd/dip/src/ws"
staticfiles "git.paulbsd.com/paulbsd/dip/static"
templatefiles "git.paulbsd.com/paulbsd/dip/templates"
"git.paulbsd.com/paulbsd/dip/utils"
)
func main() {
var config config.Config
var Templates = &templatefiles.Templates
var Static = &staticfiles.Static
utils.Flags(&config.Host, &config.Port)
ws := ws.WS{}
ws.Page.Title = "Public IP Address Service"
dip.Init()
ws.RunServer(config, Templates, Static)
}