Updated Embedding Caddy in your Go program (markdown)

Matt Holt 2016-06-16 13:12:56 -06:00
parent 65c38010b9
commit 8f059eefe8

@ -31,7 +31,8 @@ You can also restart Caddy:
```go
// On Unix systems, you get graceful restarts.
// To use same Caddyfile, just pass in nil.
err = instance.Restart(newCaddyfile)
// Be sure to replace the old instance with the new one!
instance, err = instance.Restart(newCaddyfile)
if err != nil {
log.Fatal(err)
}