github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/cmd/gofmt/testdata/rewrite3.golden (about)

     1  // Copyright 2011 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  // Field tags are *ast.BasicLit nodes that are nil when the tag is
     8  // absent. These nil nodes must not be mistaken for expressions,
     9  // the rewriter should not try to dereference them. Was issue 2410.
    10  type Foo struct {
    11  	Field int
    12  }