summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-07-02 12:37:06 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-07-02 12:37:06 -0600
commitfdd871e1775d1b6d85de43e8ecf7ddc71a72c503 (patch)
tree958ba660c9970dc9d33487e1af6f50af8ff2e034 /modules/caddyhttp/fileserver
parent94c28a2574e8691aa64d28d70e9c03cb1d049726 (diff)
go.mod: Append /v2 to module name; update all import paths
See https://github.com/golang/go/wiki/Modules#semantic-import-versioning
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r--modules/caddyhttp/fileserver/browse.go4
-rw-r--r--modules/caddyhttp/fileserver/browselisting.go2
-rw-r--r--modules/caddyhttp/fileserver/matcher.go4
-rw-r--r--modules/caddyhttp/fileserver/staticfiles.go4
4 files changed, 7 insertions, 7 deletions
diff --git a/modules/caddyhttp/fileserver/browse.go b/modules/caddyhttp/fileserver/browse.go
index 9dd09e9..e0e6de2 100644
--- a/modules/caddyhttp/fileserver/browse.go
+++ b/modules/caddyhttp/fileserver/browse.go
@@ -23,8 +23,8 @@ import (
"path"
"strings"
- "github.com/caddyserver/caddy"
- "github.com/caddyserver/caddy/modules/caddyhttp"
+ "github.com/caddyserver/caddy/v2"
+ "github.com/caddyserver/caddy/v2/modules/caddyhttp"
)
// Browse configures directory browsing.
diff --git a/modules/caddyhttp/fileserver/browselisting.go b/modules/caddyhttp/fileserver/browselisting.go
index d81e86c..b2349f8 100644
--- a/modules/caddyhttp/fileserver/browselisting.go
+++ b/modules/caddyhttp/fileserver/browselisting.go
@@ -23,7 +23,7 @@ import (
"strings"
"time"
- "github.com/caddyserver/caddy"
+ "github.com/caddyserver/caddy/v2"
"github.com/dustin/go-humanize"
)
diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go
index 2ff873f..da36eaa 100644
--- a/modules/caddyhttp/fileserver/matcher.go
+++ b/modules/caddyhttp/fileserver/matcher.go
@@ -18,8 +18,8 @@ import (
"net/http"
"os"
- "github.com/caddyserver/caddy"
- "github.com/caddyserver/caddy/modules/caddyhttp"
+ "github.com/caddyserver/caddy/v2"
+ "github.com/caddyserver/caddy/v2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go
index ff48961..67a337b 100644
--- a/modules/caddyhttp/fileserver/staticfiles.go
+++ b/modules/caddyhttp/fileserver/staticfiles.go
@@ -27,8 +27,8 @@ import (
"strings"
"time"
- "github.com/caddyserver/caddy"
- "github.com/caddyserver/caddy/modules/caddyhttp"
+ "github.com/caddyserver/caddy/v2"
+ "github.com/caddyserver/caddy/v2/modules/caddyhttp"
)
func init() {