增加golangci-lint配置

This commit is contained in:
刘祥超
2023-08-08 18:14:48 +08:00
parent 22eb143dee
commit f9fbd23a77
9 changed files with 89 additions and 27 deletions

View File

@@ -9,8 +9,8 @@ func TestOn(t *testing.T) {
type User struct {
name string
}
var u = &User{}
var u2 = &User{}
var u = &User{name: "lily"}
var u2 = &User{name: "lucy"}
events.On("hello", func() {
t.Log("world")