github.com/Johnny2210/revive@v1.0.8-0.20210625134200-febf37ccd0f5/testdata/golint/exported.go (about)

     1  // Package golint comment
     2  package golint
     3  
     4  type (
     5  	// O is a shortcut (alias) for map[string]interface{}, e.g. a JSON object.
     6  	O = map[string]interface{}
     7  
     8  	// A is shortcut for []O.
     9  	A = []O
    10  
    11  	// This Person type is simple
    12  	Person = map[string]interface{}
    13  )
    14  
    15  type Foo struct{} // MATCH /exported type Foo should have comment or be unexported/
    16  
    17  // The following cases are no-regression tests for issue 229
    18  
    19  /* Bar something */
    20  type Bar struct{}
    21  
    22  /* Toto something */
    23  func Toto() {}
    24  
    25  /* FirstLetter something */
    26  const FirstLetter = "A"
    27  
    28  /*Bar2 something */
    29  type Bar2 struct{}
    30  
    31  /*Toto2 something */
    32  func Toto2() {}
    33  
    34  /*SecondLetter something */
    35  const SecondLetter = "B"