go-ddns-client/main.go

23 lines
308 B
Go
Raw Normal View History

2019-05-07 09:48:58 +00:00
package main
2019-05-08 10:01:06 +00:00
import (
"log"
"git.trj.tw/golang/go-ddns-client/module/config"
"git.trj.tw/golang/go-ddns-client/module/option"
)
func init() {
option.RegOptions()
}
2019-05-07 09:48:58 +00:00
func main() {
2019-05-08 10:01:06 +00:00
var err error
opts := option.GetOptions()
err = config.LoadConfig(opts.Config)
if err != nil {
log.Fatal(err)
}
2019-05-07 09:48:58 +00:00
}