Example #1
0
func init() {
	handover := daemonStart

	skel.AppRegister(&skel.App{
		Name:     "daemon",
		Handover: &handover,
	})
}
Example #2
0
func init() {
	handover := func() {
		fmt.Printf(
			"SshReverseProxy - This tag line may change - %s\n\n"+
				"%s\nCopyright (c) 2016, Dolf Schimmel\n"+
				"License BSD-2 clause <%s>\n\n"+
				"Time of Build: %s\n\n",
			buildTag,
			"https://github.com/Freeaqingme/SshReverseProxy",
			"https://git.io/vVSYI",
			buildTime)
		os.Exit(0)
	}

	skel.AppRegister(&skel.App{
		Name:     "version",
		Handover: &handover,
	})
}