yanic/main.go
Martin Geno 708e8c4563 init
2016-02-19 11:13:30 +01:00

20 lines
284 B
Go

package main
import (
"log"
"net/http"
)
func main(){
node := NewNodeServer("/nodes")
go node.Listen()
annouced := NewAnnouced(node)
go annouced.Run()
// static files
http.Handle("/", http.FileServer(http.Dir("webroot")))
log.Fatal(http.ListenAndServe(":8080", nil))
}