ipbl/utils/main.go
Paul Lecuq 90136fe906
Some checks failed
continuous-integration/drone/push Build is failing
added zeromq handling
2022-03-11 23:34:09 +01:00

30 lines
368 B
Go

package utils
import (
"flag"
"log"
"os"
"time"
)
// Usage displays possible arguments
func Usage() {
flag.PrintDefaults()
os.Exit(0)
}
// Advice displays possible arguments with warning advices
func Advice(advice string) {
flag.PrintDefaults()
if advice != "" {
log.Fatalln(advice)
}
os.Exit(0)
}
func Server() {
for {
time.Sleep(time.Second)
}
}