github.com/sbinet/go@v0.0.0-20160827155028-54d7de7dd62b/src/cmd/gofmt/testdata/rewrite3.input (about)

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