Move start up messages to main function
This commit is contained in:
parent
036152d89e
commit
08257bab25
|
@ -114,6 +114,11 @@ func main() {
|
|||
|
||||
if createBackend {
|
||||
backend = createMemoryBackend()
|
||||
|
||||
log.Println(`Config file "backend.json" is created in the current directory.`)
|
||||
log.Println(`Update "Me" variable to your website address "https://example.com/"`)
|
||||
log.Println(`Update "TokenEndpoint" variable to the address of your token endpoint "https://example.com/token"`)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -169,10 +169,6 @@ func createMemoryBackend() microsub.Microsub {
|
|||
backend.lock.Unlock()
|
||||
|
||||
backend.save()
|
||||
|
||||
log.Println(`Config file "backend.json" is created in the current directory.`)
|
||||
log.Println(`Update "Me" variable to your website address "https://example.com/"`)
|
||||
log.Println(`Update "TokenEndpoint" variable to the address of your token endpoint "https://example.com/token"`)
|
||||
return &backend
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user