moved config print around

This commit is contained in:
A_D 2018-11-16 22:34:38 +02:00
parent 1a6323d68b
commit 5769fd101d
No known key found for this signature in database
GPG Key ID: C242F3DD220FA945

11
main.go
View File

@ -1,6 +1,15 @@
package main
func main() {
import "fmt"
const configPrint = `
CONFIG:
Secret: %q
BindHost: %q
BindPort: %q
`
func main() {
config := getConfig()
fmt.Printf(configPrint, config.Secret, config.BindHost, config.BindPort)
ListenForWebHook(config)
}