arnaucube
arnaucube/goImgServerPublic Self-hosted repository
goImgServer/main.go
main.goRaw
 1package main
 2
 3import (
 4	"fmt"
 5	"log"
 6	"net/http"
 7)
 8
 9func main() {
10	readConfig("config.json")
11	fmt.Println(config)
12
13	router := NewRouter()
14
15	log.Fatal(http.ListenAndServe(":"+config.ServerPort, router))
16}