GoPLS Viewer

Home|gopls/cmd/bundle/testdata/out.golden
1//go:build tag
2// +build tag
3
4// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.
5//   $ bundle
6
7// The package doc comment
8//
9
10package dest
11
12import (
13    "fmt"
14    . "fmt"
15    _ "fmt"
16    renamedfmt "fmt"
17    renamedfmt2 "fmt"
18
19    "domain.name/importdecl"
20)
21
22// init functions are not renamed
23func init() { prefixfoo() }
24
25// Type S.
26type prefixS struct {
27    prefixt
28    u int
29} /* multi-line
30comment
31*/
32
33// non-associated comment
34
35/*
36    non-associated comment2
37*/
38
39// Function bar.
40func prefixbar(s *prefixS) {
41    fmt.Println(s.prefixt, s.u) // comment inside function
42}
43
44// file-end comment
45
46type prefixt int // type1
47
48// const1
49const prefixc = 1 // const2
50
51func prefixfoo() {
52    fmt.Println(importdecl.F())
53}
54
55// zinit
56const (
57    prefixz1 = iota // z1
58    prefixz2        // z2
59) // zend
60
61func prefixbaz() {
62    renamedfmt.Println()
63    renamedfmt2.Println()
64    Println()
65}
66
MembersX
Members
X