From 4eaa1d6e1d082f89729f8447c4e5007b5d75fe65 Mon Sep 17 00:00:00 2001 From: "legoff.laurent" Date: Tue, 23 Nov 2010 18:35:19 +0000 Subject: [PATCH] Modify getting started to use svn url --- draw2d/src/cmd/gettingStarted.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/draw2d/src/cmd/gettingStarted.go b/draw2d/src/cmd/gettingStarted.go index ef6762d..4a44fbe 100644 --- a/draw2d/src/cmd/gettingStarted.go +++ b/draw2d/src/cmd/gettingStarted.go @@ -1,17 +1,17 @@ package main - import ( "fmt" "log" "os" "bufio" - + "image" "image/png" - "draw2d" + "draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d" ) + func saveToPngFile(filePath string, m image.Image) { f, err := os.Open(filePath, os.O_CREAT|os.O_WRONLY, 0600) if err != nil { @@ -39,6 +39,5 @@ func main() { gc.MoveTo(10.0, 10.0) gc.LineTo(100.0, 10.0) gc.Stroke() - - saveToPngFile("../../TestPath.png", i) -} + saveToPngFile("TestPath.png", i) +} \ No newline at end of file