...

Text file src/golang.org/x/tools/cmd/bundle/testdata/out.golden

Documentation: golang.org/x/tools/cmd/bundle/testdata

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

View as plain text