1
0
mirror of https://github.com/golang/go synced 2024-11-05 20:06:10 -07:00
go/cmd/bundle/testdata/out.golden
Alan Donovan 99c318c742 cmd/bundle: add blank line before package declaration
so that the bundled package doesn't clobber the package declaration
of the host package.

Also: minor comment tweaks.

Change-Id: I28ab3aca2b02213edc95c6b12c0d1a2514453cfe
Reviewed-on: https://go-review.googlesource.com/18040
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-18 13:56:53 +00:00

32 lines
424 B
Plaintext

// Code generated by golang.org/x/tools/cmd/bundle command:
// $ bundle initial dest prefix
// The package doc comment
//
package dest
import (
"fmt"
)
// init functions are not renamed
func init() { prefixfoo() }
// Type S.
type prefixS struct {
prefixt
u int
}
// Function bar.
func prefixbar(s *prefixS) { fmt.Println(s.prefixt, s.u) }
type prefixt int
const prefixc = 1
func prefixfoo() {
fmt.Println()
}