~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/cmd/gofix/testdata/reflect.template.go.in

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
        bar := strings.IndexRune(lastWord, '|')
445
445
        if bar >= 0 {
446
446
                words[len(words)-1] = lastWord[0:bar]
447
 
                formatters = strings.Split(lastWord[bar+1:], "|", -1)
 
447
                formatters = strings.Split(lastWord[bar+1:], "|")
448
448
        }
449
449
 
450
450
        // We could remember the function address here and avoid the lookup later,
705
705
        if s == "@" {
706
706
                return indirectPtr(data, numStars)
707
707
        }
708
 
        for _, elem := range strings.Split(s, ".", -1) {
 
708
        for _, elem := range strings.Split(s, ".") {
709
709
                // Look up field; data must be a struct or map.
710
710
                data = t.lookup(st, data, elem)
711
711
                if data == nil {