1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package main import ( "flag" "github.com/spf13/pflag" "k8s.io/klog/v2" ) func main() { klog.InitFlags(nil) pflag.CommandLine.AddGoFlagSet(flag.CommandLine) pflag.Parse() // TODO need parse edgemesh config file before Register @kadisi //pkg.Register() }