mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
github.com/mholt/caddy -> github.com/caddyserver/caddy
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:
|
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
|
```go
|
||||||
import "github.com/mholt/caddy"
|
import "github.com/caddyserver/caddy"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
caddy.RegisterPlugin("gizmo", caddy.Plugin{
|
caddy.RegisterPlugin("gizmo", caddy.Plugin{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user