s3manager-web/main.go
2017-02-22 11:18:20 +01:00

18 lines
209 B
Go

package main
import (
"log"
"net/http"
"os"
)
func main() {
port := os.Getenv("PORT")
if len(port) == 0 {
port = "8080"
}
router := NewRouter()
log.Fatal(http.ListenAndServe(":"+port, router))
}