name-dyndns/main.go
2015-04-30 00:18:08 -04:00

25 lines
423 B
Go

package main
import (
"fmt"
"github.com/mfycheng/name-dyndns/api"
"os"
)
const (
defaultConfigPath = "./config.json"
)
func main() {
configs, err := api.LoadConfigs(defaultConfigPath)
if err != nil {
fmt.Println("Error loading config:", err)
os.Exit(1)
return
}
fmt.Printf("Successfully loaded %d configs\n", len(configs))
for _, config := range configs {
fmt.Println("Processing config", config)
}
}