summaryrefslogtreecommitdiff
path: root/caddy.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-12-29 13:16:34 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-12-29 13:16:34 -0700
commitfdabac51a8c8801840679a24e371f23013b021bb (patch)
tree90ca5dfd899a98b702e86886b113628b420aec94 /caddy.go
parent95d944613bffce1cee3783568ae229e116168ba4 (diff)
Improve docs, especially w.r.t. placeholders and template actions
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index cde42b1..5477267 100644
--- a/caddy.go
+++ b/caddy.go
@@ -506,7 +506,7 @@ func goModule(mod *debug.Module) *debug.Module {
// TODO: track related Go issue: https://github.com/golang/go/issues/29228
// once that issue is fixed, we should just be able to use bi.Main... hopefully.
for _, dep := range bi.Deps {
- if dep.Path == "github.com/caddyserver/caddy/v2" {
+ if dep.Path == ImportPath {
return dep
}
}
@@ -543,3 +543,6 @@ var (
// path, for converting /id/ paths to /config/ paths.
rawCfgIndex map[string]string
)
+
+// ImportPath is the package import path for Caddy core.
+const ImportPath = "github.com/caddyserver/caddy/v2"