From 683943472648a4ab1b6c40d410c931be7b6d77ff Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 20 May 2022 16:14:44 +0200 Subject: [PATCH 1/3] Add go.mod and go.sum To allow usage as module in other projects fix https://github.com/fogleman/gg/issues/74 --- go.mod | 9 +++++++++ go.sum | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..db6b08d --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module gg + +go 1.16 + +require ( + github.com/fogleman/gg v1.3.0 + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 + golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..a8599c9 --- /dev/null +++ b/go.sum @@ -0,0 +1,8 @@ +github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 h1:LRtI4W37N+KFebI/qV0OFiLUv4GLOWeEW5hn/KEJvxE= +golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= From cb8abc0aa3a8f8a24a658bca63170db7f24a065a Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 20 May 2022 16:21:35 +0200 Subject: [PATCH 2/3] Fix package name --- examples/beziers.go | 2 +- examples/circle.go | 2 +- examples/clip.go | 2 +- examples/concat.go | 2 +- examples/crisp.go | 2 +- examples/cubic.go | 2 +- examples/ellipse.go | 2 +- examples/gofont.go | 2 +- examples/gradient-conic.go | 2 +- examples/gradient-linear.go | 2 +- examples/gradient-radial.go | 2 +- examples/gradient-text.go | 2 +- examples/invert-mask.go | 2 +- examples/lines.go | 2 +- examples/linewidth.go | 2 +- examples/lorem.go | 2 +- examples/mask.go | 2 +- examples/meme.go | 2 +- examples/openfill.go | 2 +- examples/pattern-fill.go | 2 +- examples/quadratic.go | 2 +- examples/rotated-image.go | 2 +- examples/rotated-text.go | 2 +- examples/scatter.go | 2 +- examples/sine.go | 2 +- examples/spiral.go | 2 +- examples/star.go | 2 +- examples/stars.go | 2 +- examples/text.go | 2 +- examples/tiling.go | 2 +- examples/unicode.go | 2 +- examples/wrap.go | 2 +- go.mod | 1 - go.sum | 2 -- 34 files changed, 32 insertions(+), 35 deletions(-) diff --git a/examples/beziers.go b/examples/beziers.go index e4cfa8d..f1c3924 100644 --- a/examples/beziers.go +++ b/examples/beziers.go @@ -3,7 +3,7 @@ package main import ( "math/rand" - "github.com/fogleman/gg" + "gg" ) func random() float64 { diff --git a/examples/circle.go b/examples/circle.go index 5debf66..395be07 100644 --- a/examples/circle.go +++ b/examples/circle.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { dc := gg.NewContext(1000, 1000) diff --git a/examples/clip.go b/examples/clip.go index 73e6f28..b013fac 100644 --- a/examples/clip.go +++ b/examples/clip.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { dc := gg.NewContext(1000, 1000) diff --git a/examples/concat.go b/examples/concat.go index 3885b63..a903134 100644 --- a/examples/concat.go +++ b/examples/concat.go @@ -3,7 +3,7 @@ package main import ( "math" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/crisp.go b/examples/crisp.go index 2ac058e..0d52855 100644 --- a/examples/crisp.go +++ b/examples/crisp.go @@ -1,7 +1,7 @@ package main import ( - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/cubic.go b/examples/cubic.go index bedc585..985045b 100644 --- a/examples/cubic.go +++ b/examples/cubic.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const S = 1000 diff --git a/examples/ellipse.go b/examples/ellipse.go index e0de9f4..c92f623 100644 --- a/examples/ellipse.go +++ b/examples/ellipse.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const S = 1024 diff --git a/examples/gofont.go b/examples/gofont.go index 76b580a..ab31494 100644 --- a/examples/gofont.go +++ b/examples/gofont.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/fogleman/gg" + "gg" "github.com/golang/freetype/truetype" "golang.org/x/image/font/gofont/goregular" ) diff --git a/examples/gradient-conic.go b/examples/gradient-conic.go index 2156f9b..3e52227 100644 --- a/examples/gradient-conic.go +++ b/examples/gradient-conic.go @@ -5,7 +5,7 @@ package main import ( "image/color" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/gradient-linear.go b/examples/gradient-linear.go index 5f1ceec..ca21780 100644 --- a/examples/gradient-linear.go +++ b/examples/gradient-linear.go @@ -3,7 +3,7 @@ package main import ( "image/color" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/gradient-radial.go b/examples/gradient-radial.go index d336135..ea4a82b 100644 --- a/examples/gradient-radial.go +++ b/examples/gradient-radial.go @@ -3,7 +3,7 @@ package main import ( "image/color" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/gradient-text.go b/examples/gradient-text.go index 5a3b983..89f1651 100644 --- a/examples/gradient-text.go +++ b/examples/gradient-text.go @@ -3,7 +3,7 @@ package main import ( "image/color" - "github.com/fogleman/gg" + "gg" ) const ( diff --git a/examples/invert-mask.go b/examples/invert-mask.go index b181503..683e10c 100644 --- a/examples/invert-mask.go +++ b/examples/invert-mask.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { dc := gg.NewContext(1024, 1024) diff --git a/examples/lines.go b/examples/lines.go index 9581dd6..660c5df 100644 --- a/examples/lines.go +++ b/examples/lines.go @@ -3,7 +3,7 @@ package main import ( "math/rand" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/linewidth.go b/examples/linewidth.go index 8cdfdca..b081520 100644 --- a/examples/linewidth.go +++ b/examples/linewidth.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { dc := gg.NewContext(1000, 1000) diff --git a/examples/lorem.go b/examples/lorem.go index 07d052a..2f5cbf9 100644 --- a/examples/lorem.go +++ b/examples/lorem.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" var lines = []string{ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod", diff --git a/examples/mask.go b/examples/mask.go index eda4a48..630df90 100644 --- a/examples/mask.go +++ b/examples/mask.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/meme.go b/examples/meme.go index cd21592..0f84564 100644 --- a/examples/meme.go +++ b/examples/meme.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const S = 1024 diff --git a/examples/openfill.go b/examples/openfill.go index 6c57d76..59079c8 100644 --- a/examples/openfill.go +++ b/examples/openfill.go @@ -4,7 +4,7 @@ import ( "math" "math/rand" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/pattern-fill.go b/examples/pattern-fill.go index d65bfc9..5fa03b6 100644 --- a/examples/pattern-fill.go +++ b/examples/pattern-fill.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { im, err := gg.LoadPNG("examples/baboon.png") diff --git a/examples/quadratic.go b/examples/quadratic.go index a4bba71..fca8ea0 100644 --- a/examples/quadratic.go +++ b/examples/quadratic.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const S = 1000 diff --git a/examples/rotated-image.go b/examples/rotated-image.go index 0ce2544..90912fd 100644 --- a/examples/rotated-image.go +++ b/examples/rotated-image.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const W = 400 diff --git a/examples/rotated-text.go b/examples/rotated-text.go index 2a3171d..aa111a8 100644 --- a/examples/rotated-text.go +++ b/examples/rotated-text.go @@ -1,7 +1,7 @@ package main import ( - "github.com/fogleman/gg" + "gg" "github.com/golang/freetype/truetype" "golang.org/x/image/font/gofont/goregular" ) diff --git a/examples/scatter.go b/examples/scatter.go index 3dca3c0..7177aa6 100644 --- a/examples/scatter.go +++ b/examples/scatter.go @@ -3,7 +3,7 @@ package main import ( "math/rand" - "github.com/fogleman/gg" + "gg" ) func CreatePoints(n int) []gg.Point { diff --git a/examples/sine.go b/examples/sine.go index 679da06..4ab8898 100644 --- a/examples/sine.go +++ b/examples/sine.go @@ -3,7 +3,7 @@ package main import ( "math" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/spiral.go b/examples/spiral.go index 47e8ee5..b84aca4 100644 --- a/examples/spiral.go +++ b/examples/spiral.go @@ -3,7 +3,7 @@ package main import ( "math" - "github.com/fogleman/gg" + "gg" ) func main() { diff --git a/examples/star.go b/examples/star.go index 05c08d6..c109eb8 100644 --- a/examples/star.go +++ b/examples/star.go @@ -3,7 +3,7 @@ package main import ( "math" - "github.com/fogleman/gg" + "gg" ) type Point struct { diff --git a/examples/stars.go b/examples/stars.go index 8999d12..b1df9c2 100644 --- a/examples/stars.go +++ b/examples/stars.go @@ -4,7 +4,7 @@ import ( "math" "math/rand" - "github.com/fogleman/gg" + "gg" ) type Point struct { diff --git a/examples/text.go b/examples/text.go index 2b16aee..3f768dd 100644 --- a/examples/text.go +++ b/examples/text.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const S = 1024 diff --git a/examples/tiling.go b/examples/tiling.go index 9688722..998a3cc 100644 --- a/examples/tiling.go +++ b/examples/tiling.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const NX = 4 diff --git a/examples/unicode.go b/examples/unicode.go index 7f1acbc..b22d45c 100644 --- a/examples/unicode.go +++ b/examples/unicode.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" func main() { const S = 4096 * 2 diff --git a/examples/wrap.go b/examples/wrap.go index f654e3b..b323fa9 100644 --- a/examples/wrap.go +++ b/examples/wrap.go @@ -1,6 +1,6 @@ package main -import "github.com/fogleman/gg" +import "gg" const TEXT = "Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off—then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me." diff --git a/go.mod b/go.mod index db6b08d..986547f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module gg go 1.16 require ( - github.com/fogleman/gg v1.3.0 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 ) diff --git a/go.sum b/go.sum index a8599c9..052a060 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= -github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 h1:LRtI4W37N+KFebI/qV0OFiLUv4GLOWeEW5hn/KEJvxE= From a91d9aba7074409310217e243ad482399181e5e6 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 20 May 2022 16:30:30 +0200 Subject: [PATCH 3/3] Fix names --- examples/beziers.go | 2 +- examples/circle.go | 2 +- examples/clip.go | 2 +- examples/concat.go | 2 +- examples/crisp.go | 2 +- examples/cubic.go | 2 +- examples/ellipse.go | 2 +- examples/gofont.go | 2 +- examples/gradient-conic.go | 2 +- examples/gradient-linear.go | 2 +- examples/gradient-radial.go | 2 +- examples/gradient-text.go | 2 +- examples/invert-mask.go | 2 +- examples/lines.go | 2 +- examples/linewidth.go | 2 +- examples/lorem.go | 2 +- examples/mask.go | 2 +- examples/meme.go | 2 +- examples/openfill.go | 2 +- examples/pattern-fill.go | 2 +- examples/quadratic.go | 2 +- examples/rotated-image.go | 2 +- examples/rotated-text.go | 2 +- examples/scatter.go | 2 +- examples/sine.go | 2 +- examples/spiral.go | 2 +- examples/star.go | 2 +- examples/stars.go | 2 +- examples/text.go | 2 +- examples/tiling.go | 2 +- examples/unicode.go | 2 +- examples/wrap.go | 2 +- go.mod | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/examples/beziers.go b/examples/beziers.go index f1c3924..e4cfa8d 100644 --- a/examples/beziers.go +++ b/examples/beziers.go @@ -3,7 +3,7 @@ package main import ( "math/rand" - "gg" + "github.com/fogleman/gg" ) func random() float64 { diff --git a/examples/circle.go b/examples/circle.go index 395be07..5debf66 100644 --- a/examples/circle.go +++ b/examples/circle.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { dc := gg.NewContext(1000, 1000) diff --git a/examples/clip.go b/examples/clip.go index b013fac..73e6f28 100644 --- a/examples/clip.go +++ b/examples/clip.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { dc := gg.NewContext(1000, 1000) diff --git a/examples/concat.go b/examples/concat.go index a903134..3885b63 100644 --- a/examples/concat.go +++ b/examples/concat.go @@ -3,7 +3,7 @@ package main import ( "math" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/crisp.go b/examples/crisp.go index 0d52855..2ac058e 100644 --- a/examples/crisp.go +++ b/examples/crisp.go @@ -1,7 +1,7 @@ package main import ( - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/cubic.go b/examples/cubic.go index 985045b..bedc585 100644 --- a/examples/cubic.go +++ b/examples/cubic.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const S = 1000 diff --git a/examples/ellipse.go b/examples/ellipse.go index c92f623..e0de9f4 100644 --- a/examples/ellipse.go +++ b/examples/ellipse.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const S = 1024 diff --git a/examples/gofont.go b/examples/gofont.go index ab31494..76b580a 100644 --- a/examples/gofont.go +++ b/examples/gofont.go @@ -3,7 +3,7 @@ package main import ( "log" - "gg" + "github.com/fogleman/gg" "github.com/golang/freetype/truetype" "golang.org/x/image/font/gofont/goregular" ) diff --git a/examples/gradient-conic.go b/examples/gradient-conic.go index 3e52227..2156f9b 100644 --- a/examples/gradient-conic.go +++ b/examples/gradient-conic.go @@ -5,7 +5,7 @@ package main import ( "image/color" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/gradient-linear.go b/examples/gradient-linear.go index ca21780..5f1ceec 100644 --- a/examples/gradient-linear.go +++ b/examples/gradient-linear.go @@ -3,7 +3,7 @@ package main import ( "image/color" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/gradient-radial.go b/examples/gradient-radial.go index ea4a82b..d336135 100644 --- a/examples/gradient-radial.go +++ b/examples/gradient-radial.go @@ -3,7 +3,7 @@ package main import ( "image/color" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/gradient-text.go b/examples/gradient-text.go index 89f1651..5a3b983 100644 --- a/examples/gradient-text.go +++ b/examples/gradient-text.go @@ -3,7 +3,7 @@ package main import ( "image/color" - "gg" + "github.com/fogleman/gg" ) const ( diff --git a/examples/invert-mask.go b/examples/invert-mask.go index 683e10c..b181503 100644 --- a/examples/invert-mask.go +++ b/examples/invert-mask.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { dc := gg.NewContext(1024, 1024) diff --git a/examples/lines.go b/examples/lines.go index 660c5df..9581dd6 100644 --- a/examples/lines.go +++ b/examples/lines.go @@ -3,7 +3,7 @@ package main import ( "math/rand" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/linewidth.go b/examples/linewidth.go index b081520..8cdfdca 100644 --- a/examples/linewidth.go +++ b/examples/linewidth.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { dc := gg.NewContext(1000, 1000) diff --git a/examples/lorem.go b/examples/lorem.go index 2f5cbf9..07d052a 100644 --- a/examples/lorem.go +++ b/examples/lorem.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" var lines = []string{ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod", diff --git a/examples/mask.go b/examples/mask.go index 630df90..eda4a48 100644 --- a/examples/mask.go +++ b/examples/mask.go @@ -3,7 +3,7 @@ package main import ( "log" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/meme.go b/examples/meme.go index 0f84564..cd21592 100644 --- a/examples/meme.go +++ b/examples/meme.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const S = 1024 diff --git a/examples/openfill.go b/examples/openfill.go index 59079c8..6c57d76 100644 --- a/examples/openfill.go +++ b/examples/openfill.go @@ -4,7 +4,7 @@ import ( "math" "math/rand" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/pattern-fill.go b/examples/pattern-fill.go index 5fa03b6..d65bfc9 100644 --- a/examples/pattern-fill.go +++ b/examples/pattern-fill.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { im, err := gg.LoadPNG("examples/baboon.png") diff --git a/examples/quadratic.go b/examples/quadratic.go index fca8ea0..a4bba71 100644 --- a/examples/quadratic.go +++ b/examples/quadratic.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const S = 1000 diff --git a/examples/rotated-image.go b/examples/rotated-image.go index 90912fd..0ce2544 100644 --- a/examples/rotated-image.go +++ b/examples/rotated-image.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const W = 400 diff --git a/examples/rotated-text.go b/examples/rotated-text.go index aa111a8..2a3171d 100644 --- a/examples/rotated-text.go +++ b/examples/rotated-text.go @@ -1,7 +1,7 @@ package main import ( - "gg" + "github.com/fogleman/gg" "github.com/golang/freetype/truetype" "golang.org/x/image/font/gofont/goregular" ) diff --git a/examples/scatter.go b/examples/scatter.go index 7177aa6..3dca3c0 100644 --- a/examples/scatter.go +++ b/examples/scatter.go @@ -3,7 +3,7 @@ package main import ( "math/rand" - "gg" + "github.com/fogleman/gg" ) func CreatePoints(n int) []gg.Point { diff --git a/examples/sine.go b/examples/sine.go index 4ab8898..679da06 100644 --- a/examples/sine.go +++ b/examples/sine.go @@ -3,7 +3,7 @@ package main import ( "math" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/spiral.go b/examples/spiral.go index b84aca4..47e8ee5 100644 --- a/examples/spiral.go +++ b/examples/spiral.go @@ -3,7 +3,7 @@ package main import ( "math" - "gg" + "github.com/fogleman/gg" ) func main() { diff --git a/examples/star.go b/examples/star.go index c109eb8..05c08d6 100644 --- a/examples/star.go +++ b/examples/star.go @@ -3,7 +3,7 @@ package main import ( "math" - "gg" + "github.com/fogleman/gg" ) type Point struct { diff --git a/examples/stars.go b/examples/stars.go index b1df9c2..8999d12 100644 --- a/examples/stars.go +++ b/examples/stars.go @@ -4,7 +4,7 @@ import ( "math" "math/rand" - "gg" + "github.com/fogleman/gg" ) type Point struct { diff --git a/examples/text.go b/examples/text.go index 3f768dd..2b16aee 100644 --- a/examples/text.go +++ b/examples/text.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const S = 1024 diff --git a/examples/tiling.go b/examples/tiling.go index 998a3cc..9688722 100644 --- a/examples/tiling.go +++ b/examples/tiling.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const NX = 4 diff --git a/examples/unicode.go b/examples/unicode.go index b22d45c..7f1acbc 100644 --- a/examples/unicode.go +++ b/examples/unicode.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" func main() { const S = 4096 * 2 diff --git a/examples/wrap.go b/examples/wrap.go index b323fa9..f654e3b 100644 --- a/examples/wrap.go +++ b/examples/wrap.go @@ -1,6 +1,6 @@ package main -import "gg" +import "github.com/fogleman/gg" const TEXT = "Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off—then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me." diff --git a/go.mod b/go.mod index 986547f..a812b86 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gg +module github/fogleman/gg go 1.16