mirror of
https://git.ferricyanide.solutions/A_D/irc-webhooks.git
synced 2024-12-22 18:17:03 +00:00
moved config print around
This commit is contained in:
parent
1a6323d68b
commit
5769fd101d
11
main.go
11
main.go
@ -1,6 +1,15 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
func main() {
|
import "fmt"
|
||||||
|
const configPrint = `
|
||||||
|
CONFIG:
|
||||||
|
Secret: %q
|
||||||
|
BindHost: %q
|
||||||
|
BindPort: %q
|
||||||
|
`
|
||||||
|
func main() {
|
||||||
config := getConfig()
|
config := getConfig()
|
||||||
|
fmt.Printf(configPrint, config.Secret, config.BindHost, config.BindPort)
|
||||||
|
|
||||||
ListenForWebHook(config)
|
ListenForWebHook(config)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user