From 8f059eefe88109925d2e22a05084b2214ead8ef5 Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Thu, 16 Jun 2016 13:12:56 -0600 Subject: [PATCH] Updated Embedding Caddy in your Go program (markdown) --- Embedding-Caddy-in-your-Go-program.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Embedding-Caddy-in-your-Go-program.md b/Embedding-Caddy-in-your-Go-program.md index c59e7a1..223b86c 100644 --- a/Embedding-Caddy-in-your-Go-program.md +++ b/Embedding-Caddy-in-your-Go-program.md @@ -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) }