blob: 416cc9b3bef5fa5f94659e54a70206a9c3577bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package main
import (
"log"
"net/http"
"github.com/xlgmokha/x/pkg/env"
"gitlab.com/mokhax/sparkled/pkg/web"
)
func main() {
bindAddr := env.Fetch("BIND_ADDR", ":http")
log.Printf("Listening on %v\n", bindAddr)
log.Fatal(http.ListenAndServe(
bindAddr,
web.NewServer(nil),
))
}
|