notify-to-slack/main.go
2021-12-14 17:18:34 +00:00

19 lines
320 B
Go

package main
var (
// version of notify-to-slack being run
version = "dev"
)
func main() {
showVersion := flag.Bool("version", false, "Display the version of minitor and exit")
flag.Parse()
// Print version if flag is provided
if *showVersion {
fmt.Println("notify-to-slack version:", version)
return
}
}