use gopkg.in/llgcode/draw2d.v1 import

This commit is contained in:
llgcode 2016-12-13 15:35:47 +01:00
parent ce9c7f76f7
commit 2745c863f9
23 changed files with 56 additions and 56 deletions

View file

@ -11,7 +11,7 @@ import (
"os"
"testing"
"github.com/llgcode/draw2d/raster"
"gopkg.in/llgcode/draw2d.v1/raster"
)
var (

View file

@ -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.

View file

@ -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() {

View file

@ -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
//

View file

@ -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 (

View file

@ -6,7 +6,7 @@ package draw2dpdf
import (
"math"
"github.com/llgcode/draw2d"
"gopkg.in/llgcode/draw2d.v1"
)
const deg = 180 / math.Pi

View file

@ -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) {

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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"
)

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 (

View file

@ -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.

View file

@ -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.

View file

@ -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

View file

@ -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"
)

View file

@ -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) {

View file

@ -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)