Files
ipe/main.go
T
claudemiro cd1fd8995d File structure organization.
Create a new package ipe and put everything n there except for the main function.
2015-01-31 08:29:01 -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/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")
}