You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
491 B
Go

package main
import (
"log"
"net/http"
"strings"
"git.runcible.io/learning/ratchet"
ratchethttp "git.runcible.io/learning/ratchet/internal"
)
var (
version string
commit string
)
func main() {
// Propagate build information to root package to share globally
ratchet.Version = strings.TrimPrefix(version, "")
ratchet.Commit = commit
server := ratchethttp.NewRatchetServer()
log.Print("Listening on http://localhost:5001/")
log.Fatal(http.ListenAndServe(":5001", server))
}