Repository: CloudyKit/jet
Pull request #161 (2020-07-03 13:48:04)

Update module path

sauerbraten: Oh, thanks a lot! Completely missed that!

Patch:
diff --git a/examples/asset_packaging/main.go b/examples/asset_packaging/main.go
index 0ec1390..58fff34 100644
--- a/examples/asset_packaging/main.go
+++ b/examples/asset_packaging/main.go
@@ -27,10 +27,10 @@ import (
 	"strings"
 	"time"
 
-	"github.com/CloudyKit/jet/v3"
-	"github.com/CloudyKit/jet/v3/examples/asset_packaging/assets/templates"
-	"github.com/CloudyKit/jet/v3/loaders/httpfs"
-	"github.com/CloudyKit/jet/v3/loaders/multi"
+	"github.com/CloudyKit/jet/v4"
+	"github.com/CloudyKit/jet/v4/examples/asset_packaging/assets/templates"
+	"github.com/CloudyKit/jet/v4/loaders/httpfs"
+	"github.com/CloudyKit/jet/v4/loaders/multi"
 )
 
 // Initialize the set with both local files as well as the packaged
diff --git a/examples/todos/main.go b/examples/todos/main.go
index 6a15e39..145151d 100644
--- a/examples/todos/main.go
+++ b/examples/todos/main.go
@@ -25,7 +25,7 @@ import (
 	"reflect"
 	"strings"
 
-	"github.com/CloudyKit/jet/v3"
+	"github.com/CloudyKit/jet/v4"
 )
 
 var views = jet.NewHTMLSet("./views")
diff --git a/go.mod b/go.mod
index 9ae4808..bc5e86f 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/CloudyKit/jet/v3
+module github.com/CloudyKit/jet/v4
 
 go 1.12
 
diff --git a/loaders/httpfs/loader.go b/loaders/httpfs/loader.go
index 8bfc794..f765e08 100644
--- a/loaders/httpfs/loader.go
+++ b/loaders/httpfs/loader.go
@@ -5,7 +5,7 @@ import (
 	"net/http"
 	"os"
 
-	"github.com/CloudyKit/jet/v3"
+	"github.com/CloudyKit/jet/v4"
 )
 
 type httpFileSystemLoader struct {
diff --git a/loaders/multi/multi.go b/loaders/multi/multi.go
index 140a726..b535406 100644
--- a/loaders/multi/multi.go
+++ b/loaders/multi/multi.go
@@ -4,9 +4,11 @@ import (
 	"io"
 	"os"
 
-	"github.com/CloudyKit/jet/v3"
+	"github.com/CloudyKit/jet/v4"
 )
 
+var _ jet.Loader = (*Multi)(nil)
+
 // Multi implements jet.Loader interface and tries to load templates from a list of custom loaders.
 // Caution: When multiple loaders have templates with the same name, the order in which you pass loaders
 // to NewLoader/AddLoaders dictates which template will be returned by Open when you request it!
diff --git a/utils/visitor.go b/utils/visitor.go
index 454f45c..69516b0 100644
--- a/utils/visitor.go
+++ b/utils/visitor.go
@@ -3,7 +3,7 @@ package utils
 import (
 	"fmt"
 
-	"github.com/CloudyKit/jet/v3"
+	"github.com/CloudyKit/jet/v4"
 )
 
 // Walk walks the template ast and calls the Visit method on each node of the tree


Test patch:
diff --git a/jettest/test.go b/jettest/test.go
index 3aac54d..9c1c9dc 100644
--- a/jettest/test.go
+++ b/jettest/test.go
@@ -20,7 +20,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/CloudyKit/jet/v3"
+	"github.com/CloudyKit/jet/v4"
 )
 
 // TestingSet holds a template set for running tests
diff --git a/loaders/httpfs/httpfs_test.go b/loaders/httpfs/httpfs_test.go
index 7c387f2..1c19dc7 100644
--- a/loaders/httpfs/httpfs_test.go
+++ b/loaders/httpfs/httpfs_test.go
@@ -4,8 +4,8 @@ import (
 	"net/http"
 	"testing"
 
-	"github.com/CloudyKit/jet/v3"
-	"github.com/CloudyKit/jet/v3/jettest"
+	"github.com/CloudyKit/jet/v4"
+	"github.com/CloudyKit/jet/v4/jettest"
 )
 
 func TestNilHTTPFileSystem(t *testing.T) {
diff --git a/loaders/multi/multi_test.go b/loaders/multi/multi_test.go
index 37950de..5941214 100644
--- a/loaders/multi/multi_test.go
+++ b/loaders/multi/multi_test.go
@@ -4,9 +4,9 @@ import (
 	"net/http"
 	"testing"
 
-	"github.com/CloudyKit/jet/v3"
-	"github.com/CloudyKit/jet/v3/jettest"
-	"github.com/CloudyKit/jet/v3/loaders/httpfs"
+	"github.com/CloudyKit/jet/v4"
+	"github.com/CloudyKit/jet/v4/jettest"
+	"github.com/CloudyKit/jet/v4/loaders/httpfs"
 )
 
 func TestZeroLoaders(t *testing.T) {
diff --git a/utils/visitor_test.go b/utils/visitor_test.go
index c19acd7..4f40e4f 100644
--- a/utils/visitor_test.go
+++ b/utils/visitor_test.go
@@ -4,7 +4,7 @@ import (
 	"reflect"
 	"testing"
 
-	"github.com/CloudyKit/jet/v3"
+	"github.com/CloudyKit/jet/v4"
 )
 
 var Set = jet.NewHTMLSet("")