s3manager-web/main.go
2017-03-09 21:20:40 +01:00

26 lines
335 B
Go

package main
import (
"log"
"net/http"
"os"
minio "github.com/minio/minio-go"
)
// Server is a server containing a minio client
type Server struct {
s3 *minio.Client
}
func main() {
port := os.Getenv("PORT")
if len(port) == 0 {
port = "8080"
}
router := NewRouter()
log.Fatal(http.ListenAndServe(":"+port, router))
}