Files
ipe/main.go
T
claudemiro 228ed284d9 Removed godep dependency.
Golang community are discuting a vendor aproach to go dependencies. This
change will come as experimental in go 1.5. For now I am removing the
godep dependency manager and using a vendor aproach.

I still have to use the full path when importing dependencies, but when
go1.5 released I just have to rename the imports and use a -vendor
prefix when building the project.
2015-06-13 09:11:55 -03:00

41 lines
1.1 KiB
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"
log "github.com/dimiro1/ipe/vendor/github.com/golang/glog"
)
// Main function, initialze the system
func main() {
var filename = flag.String("config", "config.json", "Config file location")
flag.Parse()
printBanner()
if err := ipe.Start(*filename); err != nil {
log.Fatal(err)
}
}
// Print a beatifull banner
func printBanner() {
fmt.Print("\033[36m")
fmt.Print(`
██╗██████╗ ███████╗
██║██╔══██╗██╔════╝
██║██████╔╝█████╗
██║██╔═══╝ ██╔══╝
██║██║ ███████╗
╚═╝╚═╝ ╚══════╝`)
fmt.Println("\033[0m")
fmt.Println("\033[32mWelcome to Ipê - Yet another Pusher server clone\033[0m")
fmt.Println("\033[33mBy: Claudemiro Alves Feitosa Neto <[email protected]>\033[0m")
}