arnaucube
arnaucube/goImgServerPublic Self-hosted repository
config print struct on run
arnaucode idoctnef@openmailbox.org
Mon, 10 Jul 2017 17:57:50 +0200
commit

f9c5ee76fa02a257528a1e22a96641977adbf4b9

parent

e0aeeb09d161fb0b855e1979e19d3a8f591a1e0b

3 files changed, 2 insertions(+), 2 deletions(-)

jump to
M config.json → config.json

@@ -1,5 +1,5 @@

{ - "serverIP": "192.168.1.36", + "serverIP": "192.168.1.35", "serverPort": "3050", "folder": "files", "blockedIPs": [
M main.go → main.go

@@ -8,7 +8,7 @@ )

func main() { readConfig("config.json") - fmt.Println(config) + fmt.Printf("%+v\n", config) router := NewRouter()