virtigo/main.go

34 lines
449 B
Go
Raw Normal View History

// Copyright 2024 WIT.COM Inc Licensed GPL 3.0
package main
import (
// "log"
"embed"
"os"
"go.wit.com/dev/alexflint/arg"
"go.wit.com/log"
)
var Version string
//go:embed resources/*
var resources embed.FS
func main() {
pp := arg.MustParse(&argv)
if ! argv.Uptime {
pp.WriteHelp(os.Stdout)
os.Exit(0)
}
log.Info("connect to cluser here", argv.Hosts)
for i, s := range argv.Hosts {
log.Info("i, s =", i, s)
}
startHTTP()
}