github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/format_golden.golden (about)

     1  // first line comment
     2  
     3  // f is a func
     4  func f() {
     5  
     6      //   f body
     7  }
     8  
     9  // g is a func
    10  func g() {}
    11  
    12  // h is a func
    13  func h() { /*do nothing*/ }
    14  
    15  // i is an int
    16  var i int
    17  
    18  type s struct {
    19      n   float32
    20      xy  int
    21      abc string
    22  
    23      // comment1
    24      z   bool // comment2
    25  }