github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/testdata/unexported-naming.go (about)

     1  package fixtures
     2  
     3  var unexported string
     4  var Exported string
     5  
     6  func unexportednaming(
     7  	S int, // MATCH /the symbol S is local, its name should start with a lowercase letter/
     8  	s int,
     9  ) (
    10  	Result bool, // MATCH /the symbol Result is local, its name should start with a lowercase letter/
    11  	result bool,
    12  ) {
    13  	var NotExportable int // MATCH /the symbol NotExportable is local, its name should start with a lowercase letter/
    14  	var local float32
    15  	{
    16  		OtherNotExportable := 0 // MATCH /the symbol OtherNotExportable is local, its name should start with a lowercase letter/
    17  	}
    18  	const NotExportableConstant = "local" // MATCH /the symbol NotExportableConstant is local, its name should start with a lowercase letter/
    19  
    20  	return
    21  }