summaryrefslogtreecommitdiff
path: root/src/go/parser/example_test.go
Commit message (Collapse)AuthorAgeFilesLines
* go/parser: fix example to run on the playgroundDaniel Martí2017-04-031-5/+14
| | | | | | | | | | | | | | | | The example shouldn't rely on the existance of example_test.go. That breaks in the playground, which is what the "run" button in https://golang.org/pkg/go/parser/#example_ParseFile does. Make the example self-sufficient by using a small piece of source via a string literal instead. Fixes #19823. Change-Id: Ie8a3c6c5d00724e38ff727862b62e6a3621adc88 Reviewed-on: https://go-review.googlesource.com/39236 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Robert Griesemer <gri@golang.org>
* build: move package sources from src/pkg to srcRuss Cox2014-09-081-0/+34
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.