44 lines
1002 B
Go
44 lines
1002 B
Go
// Copyright 2014 Claudemiro Alves Feitosa Neto. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
|
|
"github.com/dimiro1/ipe/ipe"
|
|
)
|
|
|
|
// Main function, initialize the system
|
|
func main() {
|
|
var filename = flag.String("config", "config.json", "Config file location")
|
|
flag.Parse()
|
|
|
|
printBanner()
|
|
|
|
ipe.Start(*filename)
|
|
}
|
|
|
|
// Print a beautiful banner
|
|
func printBanner() {
|
|
fmt.Print("\033[31m")
|
|
fmt.Print(`
|
|
d8b
|
|
Y8P
|
|
|
|
888 88888b. .d88b.
|
|
888 888 "88b d8P Y8b
|
|
888 888 888 88888888
|
|
888 888 d88P Y8b.
|
|
888 88888P" "Y8888
|
|
888
|
|
888
|
|
888
|
|
`)
|
|
fmt.Println("\033[0m")
|
|
fmt.Println("\033[32mWelcome to Ipê - Yet another Pusher server clone (https://github.com/dimiro1/ipe)\033[0m")
|
|
fmt.Println("\033[33mBy: Claudemiro Alves Feitosa Neto <[email protected]>\033[0m")
|
|
}
|