mirror of
https://github.com/golang/go
synced 2024-11-05 22:46:12 -07:00
ba484b064f
imports should be ordered like import ( "fmt" "golang.org/x/text" ) Change-Id: I000374833de370463d772c2596c7ac6ee5e9725c Reviewed-on: https://go-review.googlesource.com/23026 Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Nigel Tao <nigeltao@golang.org>
34 lines
437 B
Plaintext
34 lines
437 B
Plaintext
// Code generated by golang.org/x/tools/cmd/bundle.
|
|
// $ bundle
|
|
|
|
// The package doc comment
|
|
//
|
|
|
|
package dest
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"domain.name/importdecl"
|
|
)
|
|
|
|
// 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(importdecl.F())
|
|
}
|