package main import ( "flag" ) var deviceName string var hasDualNetwork bool func init() { flag.StringVar(&deviceName, "device", "System", "Set device name") flag.BoolVar(&hasDualNetwork, "dual", false, "Set if it has dual network") flag.Parse() } func main() { runHttp() }