-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.go
42 lines (35 loc) · 1.07 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
import "fmt"
func main() {
server := NewServer()
server.Start()
<-server.exit
}
// display version info
func displayVersion() {
fmt.Println("Git Commit:", GitCommit)
fmt.Println("Version:", Version)
if VersionPrerelease != "" {
fmt.Println("Version PreRelease:", VersionPrerelease)
}
}
// display header when program starts
func displayHeader() {
fmt.Println()
fmt.Println(".................. ............. /' /)")
fmt.Println("................./´ /)........./¯ //")
fmt.Println("..............,/¯// ......... /...//")
fmt.Println("............./...//. ......./¯ //")
fmt.Println(".........../´¯/'´ ¯/´¯ /.../ /")
fmt.Println("........./'.../... ./... /.../ //")
fmt.Println("........('(...´(... ....... ,../'. .')")
fmt.Println(".........\\.......... ..... ..\\/..../")
fmt.Println("..........''...\\.... ..... . _.•´")
fmt.Println("............\\....... ..... ..(")
fmt.Println("..............\\..... ..... ..")
fmt.Println()
fmt.Println("http://www.github.com/anguenot/ipfix-forwarder")
fmt.Println()
displayVersion()
fmt.Println()
}