github.com/mholt/caddy -> github.com/caddyserver/caddy

杨鼎睿 2019-08-08 20:29:45 +08:00
parent 6ee7a8bd8e
commit 408f26b664

@ -14,7 +14,7 @@ Directives can do things like run code when the server starts or shuts down, cha
Caddy plugins are Go packages. Create a new one that imports the `caddy` package and [registers your plugin](https://godoc.org/github.com/mholt/caddy#RegisterPlugin). Let's create one called "gizmo" that is specific to the HTTP server only:
```go
import "github.com/mholt/caddy"
import "github.com/caddyserver/caddy"
func init() {
caddy.RegisterPlugin("gizmo", caddy.Plugin{