From 2745c863f92361905abf3296320df8666dcf00c7 Mon Sep 17 00:00:00 2001 From: llgcode Date: Tue, 13 Dec 2016 15:35:47 +0100 Subject: [PATCH] use gopkg.in/llgcode/draw2d.v1 import --- curve/curve_test.go | 2 +- draw2d.go | 4 ++-- draw2dgl/gc.go | 2 +- draw2dpdf/doc.go | 2 +- draw2dpdf/gc.go | 2 +- draw2dpdf/path_converter.go | 2 +- draw2dpdf/samples_test.go | 20 ++++++++++---------- draw2dpdf/test_test.go | 4 ++-- raster/raster_test.go | 2 +- samples/android/android.go | 4 ++-- samples/appengine/server.go | 6 +++--- samples/frameimage/frameimage.go | 4 ++-- samples/geometry/geometry.go | 6 +++--- samples/gopher/gopher.go | 4 ++-- samples/gopher2/gopher2.go | 4 ++-- samples/helloworld/helloworld.go | 4 ++-- samples/helloworldgl/helloworldgl.go | 4 ++-- samples/line/line.go | 4 ++-- samples/linecapjoin/linecapjoin.go | 4 ++-- samples/postscript/postscript.go | 4 ++-- samples/postscriptgl/postscriptgl.go | 2 +- samples_test.go | 20 ++++++++++---------- test_test.go | 2 +- 23 files changed, 56 insertions(+), 56 deletions(-) diff --git a/curve/curve_test.go b/curve/curve_test.go index 0978e11..9a2d980 100644 --- a/curve/curve_test.go +++ b/curve/curve_test.go @@ -11,7 +11,7 @@ import ( "os" "testing" - "github.com/llgcode/draw2d/raster" + "gopkg.in/llgcode/draw2d.v1/raster" ) var ( diff --git a/draw2d.go b/draw2d.go index d7fbdda..63ade63 100644 --- a/draw2d.go +++ b/draw2d.go @@ -19,7 +19,7 @@ // Installation // // To install or update the package draw2d on your system, run: -// go get -u github.com/llgcode/draw2d +// go get -u gopkg.in/llgcode/draw2d.v1 // // Quick Start // @@ -46,7 +46,7 @@ // draw2d.SaveToPngFile("hello.png", dest) // // There are more examples here: -// https://github.com/llgcode/draw2d/tree/master/samples +// https://gopkg.in/llgcode/draw2d.v1/tree/master/samples // // Drawing on pdf documents is provided by the draw2dpdf package. // Drawing on opengl is provided by the draw2dgl package. diff --git a/draw2dgl/gc.go b/draw2dgl/gc.go index 66e25cb..ec152b2 100644 --- a/draw2dgl/gc.go +++ b/draw2dgl/gc.go @@ -8,7 +8,7 @@ import ( "code.google.com/p/freetype-go/freetype/raster" "github.com/go-gl/gl/v2.1/gl" - "github.com/llgcode/draw2d" + "gopkg.in/llgcode/draw2d.v1" ) func init() { diff --git a/draw2dpdf/doc.go b/draw2dpdf/doc.go index 922099c..de013df 100644 --- a/draw2dpdf/doc.go +++ b/draw2dpdf/doc.go @@ -28,7 +28,7 @@ // draw2dpdf.SaveToPdfFile("hello.pdf", dest) // // There are more examples here: -// https://github.com/llgcode/draw2d/tree/master/samples +// https://gopkg.in/llgcode/draw2d.v1/tree/master/samples // // Alternative backends // diff --git a/draw2dpdf/gc.go b/draw2dpdf/gc.go index 3d7cc5f..c8f978b 100644 --- a/draw2dpdf/gc.go +++ b/draw2dpdf/gc.go @@ -17,7 +17,7 @@ import ( "code.google.com/p/freetype-go/freetype/truetype" "github.com/jung-kurt/gofpdf" - "github.com/llgcode/draw2d" + "gopkg.in/llgcode/draw2d.v1" ) const ( diff --git a/draw2dpdf/path_converter.go b/draw2dpdf/path_converter.go index befb3f8..980b951 100644 --- a/draw2dpdf/path_converter.go +++ b/draw2dpdf/path_converter.go @@ -6,7 +6,7 @@ package draw2dpdf import ( "math" - "github.com/llgcode/draw2d" + "gopkg.in/llgcode/draw2d.v1" ) const deg = 180 / math.Pi diff --git a/draw2dpdf/samples_test.go b/draw2dpdf/samples_test.go index ca3441f..56ccd12 100644 --- a/draw2dpdf/samples_test.go +++ b/draw2dpdf/samples_test.go @@ -7,16 +7,16 @@ package draw2dpdf_test import ( "testing" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples/android" - "github.com/llgcode/draw2d/samples/frameimage" - "github.com/llgcode/draw2d/samples/geometry" - "github.com/llgcode/draw2d/samples/gopher" - "github.com/llgcode/draw2d/samples/gopher2" - "github.com/llgcode/draw2d/samples/helloworld" - "github.com/llgcode/draw2d/samples/line" - "github.com/llgcode/draw2d/samples/linecapjoin" - "github.com/llgcode/draw2d/samples/postscript" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples/android" + "gopkg.in/llgcode/draw2d.v1/samples/frameimage" + "gopkg.in/llgcode/draw2d.v1/samples/geometry" + "gopkg.in/llgcode/draw2d.v1/samples/gopher" + "gopkg.in/llgcode/draw2d.v1/samples/gopher2" + "gopkg.in/llgcode/draw2d.v1/samples/helloworld" + "gopkg.in/llgcode/draw2d.v1/samples/line" + "gopkg.in/llgcode/draw2d.v1/samples/linecapjoin" + "gopkg.in/llgcode/draw2d.v1/samples/postscript" ) func TestSampleAndroid(t *testing.T) { diff --git a/draw2dpdf/test_test.go b/draw2dpdf/test_test.go index 801ff36..d3a8c02 100644 --- a/draw2dpdf/test_test.go +++ b/draw2dpdf/test_test.go @@ -9,8 +9,8 @@ package draw2dpdf_test import ( "testing" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/draw2dpdf" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/draw2dpdf" ) type sample func(gc draw2d.GraphicContext, ext string) (string, error) diff --git a/raster/raster_test.go b/raster/raster_test.go index e01373e..6f494cb 100644 --- a/raster/raster_test.go +++ b/raster/raster_test.go @@ -10,7 +10,7 @@ import ( "testing" "code.google.com/p/freetype-go/freetype/raster" - "github.com/llgcode/draw2d/curve" + "gopkg.in/llgcode/draw2d.v1/curve" ) var flatteningThreshold = 0.5 diff --git a/samples/android/android.go b/samples/android/android.go index 37c9c60..a25def4 100644 --- a/samples/android/android.go +++ b/samples/android/android.go @@ -8,8 +8,8 @@ import ( "image/color" "math" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws a droid and returns the filename. This should only be diff --git a/samples/appengine/server.go b/samples/appengine/server.go index bbfa584..1ca552d 100644 --- a/samples/appengine/server.go +++ b/samples/appengine/server.go @@ -9,9 +9,9 @@ import ( "image/png" "net/http" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/draw2dpdf" - "github.com/llgcode/draw2d/samples/android" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/draw2dpdf" + "gopkg.in/llgcode/draw2d.v1/samples/android" "appengine" ) diff --git a/samples/frameimage/frameimage.go b/samples/frameimage/frameimage.go index 33e2050..0034fa5 100644 --- a/samples/frameimage/frameimage.go +++ b/samples/frameimage/frameimage.go @@ -7,8 +7,8 @@ package frameimage import ( "math" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws the image frame and returns the filename. diff --git a/samples/geometry/geometry.go b/samples/geometry/geometry.go index 6e96e20..a1f9350 100644 --- a/samples/geometry/geometry.go +++ b/samples/geometry/geometry.go @@ -9,9 +9,9 @@ import ( "image/color" "math" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" - "github.com/llgcode/draw2d/samples/gopher2" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" + "gopkg.in/llgcode/draw2d.v1/samples/gopher2" ) // Main draws geometry and returns the filename. This should only be diff --git a/samples/gopher/gopher.go b/samples/gopher/gopher.go index 2d5119f..e3d6fbd 100644 --- a/samples/gopher/gopher.go +++ b/samples/gopher/gopher.go @@ -8,8 +8,8 @@ package gopher import ( "image/color" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws a left hand and ear of a gopher. Afterwards it returns diff --git a/samples/gopher2/gopher2.go b/samples/gopher2/gopher2.go index 232aa03..e413729 100644 --- a/samples/gopher2/gopher2.go +++ b/samples/gopher2/gopher2.go @@ -10,8 +10,8 @@ import ( "image/color" "math" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws a rotated face of the gopher. Afterwards it returns diff --git a/samples/helloworld/helloworld.go b/samples/helloworld/helloworld.go index 9287fc2..def8baf 100644 --- a/samples/helloworld/helloworld.go +++ b/samples/helloworld/helloworld.go @@ -11,8 +11,8 @@ import ( "image/color" "math" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws "Hello World" and returns the filename. This should only be diff --git a/samples/helloworldgl/helloworldgl.go b/samples/helloworldgl/helloworldgl.go index 15ba1e9..0f94836 100644 --- a/samples/helloworldgl/helloworldgl.go +++ b/samples/helloworldgl/helloworldgl.go @@ -8,8 +8,8 @@ import ( "github.com/go-gl/gl/v2.1/gl" "github.com/go-gl/glfw/v3.1/glfw" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/draw2dgl" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/draw2dgl" ) var ( diff --git a/samples/line/line.go b/samples/line/line.go index 2899d94..a17e752 100644 --- a/samples/line/line.go +++ b/samples/line/line.go @@ -7,8 +7,8 @@ package line import ( "image/color" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws vertically spaced lines and returns the filename. diff --git a/samples/linecapjoin/linecapjoin.go b/samples/linecapjoin/linecapjoin.go index 81d78f0..b79ac3a 100644 --- a/samples/linecapjoin/linecapjoin.go +++ b/samples/linecapjoin/linecapjoin.go @@ -7,8 +7,8 @@ package linecapjoin import ( "image/color" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws the different line caps and joins. diff --git a/samples/postscript/postscript.go b/samples/postscript/postscript.go index f1d88c1..59c0490 100644 --- a/samples/postscript/postscript.go +++ b/samples/postscript/postscript.go @@ -8,8 +8,8 @@ import ( "github.com/llgcode/ps" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples" ) // Main draws the tiger diff --git a/samples/postscriptgl/postscriptgl.go b/samples/postscriptgl/postscriptgl.go index 9e75adb..72553c8 100644 --- a/samples/postscriptgl/postscriptgl.go +++ b/samples/postscriptgl/postscriptgl.go @@ -12,7 +12,7 @@ import ( "github.com/go-gl/gl/v2.1/gl" "github.com/go-gl/glfw/v3.1/glfw" - "github.com/llgcode/draw2d/draw2dgl" + "gopkg.in/llgcode/draw2d.v1/draw2dgl" "github.com/llgcode/ps" ) diff --git a/samples_test.go b/samples_test.go index fe22f06..d1362fe 100644 --- a/samples_test.go +++ b/samples_test.go @@ -5,16 +5,16 @@ package draw2d_test import ( "testing" - "github.com/llgcode/draw2d" - "github.com/llgcode/draw2d/samples/android" - "github.com/llgcode/draw2d/samples/frameimage" - "github.com/llgcode/draw2d/samples/geometry" - "github.com/llgcode/draw2d/samples/gopher" - "github.com/llgcode/draw2d/samples/gopher2" - "github.com/llgcode/draw2d/samples/helloworld" - "github.com/llgcode/draw2d/samples/line" - "github.com/llgcode/draw2d/samples/linecapjoin" - "github.com/llgcode/draw2d/samples/postscript" + "gopkg.in/llgcode/draw2d.v1" + "gopkg.in/llgcode/draw2d.v1/samples/android" + "gopkg.in/llgcode/draw2d.v1/samples/frameimage" + "gopkg.in/llgcode/draw2d.v1/samples/geometry" + "gopkg.in/llgcode/draw2d.v1/samples/gopher" + "gopkg.in/llgcode/draw2d.v1/samples/gopher2" + "gopkg.in/llgcode/draw2d.v1/samples/helloworld" + "gopkg.in/llgcode/draw2d.v1/samples/line" + "gopkg.in/llgcode/draw2d.v1/samples/linecapjoin" + "gopkg.in/llgcode/draw2d.v1/samples/postscript" ) func TestSampleAndroid(t *testing.T) { diff --git a/test_test.go b/test_test.go index 1796a9d..e9c1191 100644 --- a/test_test.go +++ b/test_test.go @@ -6,7 +6,7 @@ import ( "image" "testing" - "github.com/llgcode/draw2d" + "gopkg.in/llgcode/draw2d.v1" ) type sample func(gc draw2d.GraphicContext, ext string) (string, error)