32 lines
577 B
Go
32 lines
577 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/ekzyis/hermes/server"
|
|
)
|
|
|
|
func banner() {
|
|
fmt.Printf("" +
|
|
".__\n" +
|
|
"| |__ ___________ _____ ____ ______\n" +
|
|
"| | \\_/ __ \\_ __ \\/ \\_/ __ \\ / ___/\n" +
|
|
"| Y \\ ___/| | \\/ Y Y \\ ___/ \\___ \\\n" +
|
|
"|___| /\\___ >__| |__|_| /\\___ >____ >\n" +
|
|
" \\/ \\/...wallet...\\/ \\/ \\/\n",
|
|
)
|
|
}
|
|
|
|
func main() {
|
|
banner()
|
|
|
|
s := server.New()
|
|
|
|
// TODO: read port from env
|
|
if err := s.Start("127.0.0.1:8888"); err != http.ErrServerClosed {
|
|
log.Fatal(err)
|
|
}
|
|
}
|