Skip to content

Commit

Permalink
readme: use string slice in first readme example (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaqx authored and mholt committed Dec 12, 2018
1 parent 5b3085c commit 9645f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -28,7 +28,7 @@ Use CertMagic:

```go
// encrypted HTTPS with HTTP->HTTPS redirects - yay! 🔒😍
certmagic.HTTPS("example.com", mux)
certmagic.HTTPS([]string{"example.com"}, mux)
```

That line of code will serve your HTTP router `mux` over HTTPS, complete with HTTP->HTTPS redirects. It obtains and renews the TLS certificates. It staples OCSP responses for greater privacy and security. As long as your domain name points to your server, CertMagic will keep its connections secure.
Expand Down

0 comments on commit 9645f8e

Please sign in to comment.