23 lines
560 B
Go
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)
|
|
}
|