| @@ -32,11 +32,11 @@ linters-settings: | |||||
| main: | main: | ||||
| allow: | allow: | ||||
| - $gostd | - $gostd | ||||
| - git.wtrh.nl/wouter/gopatterns/pkg/pattern | |||||
| - git.wtrh.nl/wouter/gopatterns/pkg/pattern/point | |||||
| - git.wtrh.nl/wouter/gopatterns/pkg/pattern/template | |||||
| - git.wtrh.nl/wouter/gopatterns/pkg/position | |||||
| - git.wtrh.nl/wouter/gopatterns/pkg/vector | |||||
| - git.wtrh.nl/patterns/gopatterns/pkg/pattern | |||||
| - git.wtrh.nl/patterns/gopatterns/pkg/pattern/point | |||||
| - git.wtrh.nl/patterns/gopatterns/pkg/pattern/template | |||||
| - git.wtrh.nl/patterns/gopatterns/pkg/position | |||||
| - git.wtrh.nl/patterns/gopatterns/pkg/vector | |||||
| - github.com/stretchr/testify/assert | - github.com/stretchr/testify/assert | ||||
| - github.com/stretchr/testify/require | - github.com/stretchr/testify/require | ||||
| - github.com/tdewolff/canvas | - github.com/tdewolff/canvas | ||||
| @@ -1,7 +1,7 @@ | |||||
| package main | package main | ||||
| import ( | import ( | ||||
| "git.wtrh.nl/wouter/gopatterns/internal/basispatroonbroek" | |||||
| "git.wtrh.nl/patterns/gopatterns/internal/basispatroonbroek" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| "github.com/tdewolff/canvas/renderers" | "github.com/tdewolff/canvas/renderers" | ||||
| ) | ) | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| _ "embed" | _ "embed" | ||||
| "flag" | "flag" | ||||
| "fmt" | "fmt" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/template" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/template" | |||||
| "gitlab.com/slxh/go/env" | "gitlab.com/slxh/go/env" | ||||
| "log/slog" | "log/slog" | ||||
| "os" | "os" | ||||
| @@ -3,10 +3,10 @@ package basispatroonbroek | |||||
| import ( | import ( | ||||
| "math" | "math" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/path" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/path" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| ) | ) | ||||
| type Basispatroonbroek struct { | type Basispatroonbroek struct { | ||||
| @@ -4,7 +4,7 @@ package path | |||||
| import ( | import ( | ||||
| "image/color" | "image/color" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| ) | ) | ||||
| @@ -3,7 +3,7 @@ package path | |||||
| import ( | import ( | ||||
| "fmt" | "fmt" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| splines "gitlab.com/Achilleshiel/gosplines" | splines "gitlab.com/Achilleshiel/gosplines" | ||||
| ) | ) | ||||
| @@ -3,8 +3,8 @@ package pattern | |||||
| import ( | import ( | ||||
| "fmt" | "fmt" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/text" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/text" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| "golang.org/x/image/font/gofont/goregular" | "golang.org/x/image/font/gofont/goregular" | ||||
| "gopkg.in/Knetic/govaluate.v3" | "gopkg.in/Knetic/govaluate.v3" | ||||
| @@ -1,8 +1,8 @@ | |||||
| package point | package point | ||||
| import ( | import ( | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| ) | ) | ||||
| @@ -3,8 +3,8 @@ package point | |||||
| import ( | import ( | ||||
| "math" | "math" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| ) | ) | ||||
| @@ -1,8 +1,8 @@ | |||||
| package point | package point | ||||
| import ( | import ( | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| "math" | "math" | ||||
| ) | ) | ||||
| @@ -4,8 +4,8 @@ | |||||
| package point | package point | ||||
| import ( | import ( | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| ) | ) | ||||
| @@ -3,8 +3,8 @@ package point | |||||
| import ( | import ( | ||||
| "math" | "math" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| ) | ) | ||||
| @@ -1,9 +1,9 @@ | |||||
| package template | package template | ||||
| import ( | import ( | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/path" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/path" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| ) | ) | ||||
| // Lines contains one Line or more in a slice. | // Lines contains one Line or more in a slice. | ||||
| @@ -7,8 +7,8 @@ import ( | |||||
| "math" | "math" | ||||
| "strconv" | "strconv" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| ) | ) | ||||
| const maxRecursionDepth = 100 | const maxRecursionDepth = 100 | ||||
| @@ -2,8 +2,8 @@ package template | |||||
| import ( | import ( | ||||
| "fmt" | "fmt" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/text" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/text" | |||||
| "github.com/stoewer/go-strcase" | "github.com/stoewer/go-strcase" | ||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| "github.com/tdewolff/canvas/renderers" | "github.com/tdewolff/canvas/renderers" | ||||
| @@ -2,7 +2,7 @@ package template | |||||
| import ( | import ( | ||||
| "fmt" | "fmt" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern" | |||||
| "gopkg.in/yaml.v3" | "gopkg.in/yaml.v3" | ||||
| "io/fs" | "io/fs" | ||||
| "os" | "os" | ||||
| @@ -3,7 +3,7 @@ package template_test | |||||
| import ( | import ( | ||||
| "testing" | "testing" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/template" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/template" | |||||
| "github.com/stretchr/testify/require" | "github.com/stretchr/testify/require" | ||||
| ) | ) | ||||
| @@ -1,7 +1,7 @@ | |||||
| package text | package text | ||||
| import ( | import ( | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/pattern/point" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/pattern/point" | |||||
| "github.com/tdewolff/canvas" | "github.com/tdewolff/canvas" | ||||
| ) | ) | ||||
| @@ -5,7 +5,7 @@ package position | |||||
| import ( | import ( | ||||
| "math" | "math" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| ) | ) | ||||
| // Position contains a 2D vector and a rotation angle. | // Position contains a 2D vector and a rotation angle. | ||||
| @@ -4,8 +4,8 @@ import ( | |||||
| "math" | "math" | ||||
| "testing" | "testing" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/position" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/stretchr/testify/require" | "github.com/stretchr/testify/require" | ||||
| ) | ) | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "math" | "math" | ||||
| "testing" | "testing" | ||||
| "git.wtrh.nl/wouter/gopatterns/pkg/vector" | |||||
| "git.wtrh.nl/patterns/gopatterns/pkg/vector" | |||||
| "github.com/stretchr/testify/assert" | "github.com/stretchr/testify/assert" | ||||
| ) | ) | ||||