commit | e624061f82b926a3b2e140a9921b4465f9f4cd52 | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Tue Jan 05 07:26:41 2016 +1100 |
committer | Andrew Gerrand <adg@golang.org> | Mon Jan 04 20:47:27 2016 +0000 |
tree | e25b1e48d411743c42291ce52d8c8e98d4a0acb4 | |
parent | 7d7eb09c862b75dad445f22fa2706e2626941507 [diff] |
app: use factored import in default snippet This is a slightly more convenient starting point when adopting this snippet for your own needs. Fixes golang/go#13813 Change-Id: I0ece3d811d77c82121a90f52823b69b35f4a6e2c Reviewed-on: https://go-review.googlesource.com/18189 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/app/goplay/edit.go b/app/goplay/edit.go index d0fb6e1..ce29a78 100644 --- a/app/goplay/edit.go +++ b/app/goplay/edit.go
@@ -66,7 +66,9 @@ const hello = `package main -import "fmt" +import ( + "fmt" +) func main() { fmt.Println("Hello, playground")