github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/fix/in/gofmt_rewrite_rules.go (about)

     1  //golangcitest:args -Egofmt
     2  //golangcitest:config_path testdata/configs/gofmt_rewrite_rules.yml
     3  //golangcitest:expected_exitcode 0
     4  package p
     5  
     6  import "fmt"
     7  
     8  func GofmtRewriteRule() {
     9  	values := make([]int, 0)
    10  
    11  	values = append(values, 1)
    12  	values = append(values, 2)
    13  	values = append(values, 3)
    14  
    15  	slice := values[1:len(values)]
    16  
    17  	fmt.Println(slice)
    18  }
    19  
    20  func GofmtRewriteRule2() {
    21  	var to interface{}
    22  
    23  	fmt.Println(to)
    24  }