readme: ensure the example is valid Go (#1)

This commit is contained in:
Mohammed Al Sahaf 2020-03-22 01:13:31 +03:00 committed by GitHub
parent 6004fc79b2
commit 203ce92701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,8 +16,10 @@ Supports Caddy 2 and up.
```go
caddyVersion := "v2.0.0-beta.19"
plugins := []builder.CaddyPlugin{
ModulePath: "github.com/caddyserver/nginx-adapter",
Version: "6c484552e630ccac384d2d9c43c9d14c4e8d2e56",
builder.CaddyPlugin{
ModulePath: "github.com/caddyserver/nginx-adapter",
Version: "6c484552e630ccac384d2d9c43c9d14c4e8d2e56",
},
}
output := "./caddy"