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)) }