github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/gosmopolitan.go (about) 1 //golangcitest:args -Egosmopolitan 2 package testdata 3 4 import ( 5 "fmt" 6 "time" 7 ) 8 9 type col struct { 10 // struct tag should not get reported 11 Foo string `gorm:"column:bar;not null;comment:'不应该报告这一行'"` 12 } 13 14 func main() { 15 fmt.Println("hello world") 16 fmt.Println("你好,世界") // want `string literal contains rune in Han script` 17 fmt.Println("こんにちは、セカイ") 18 19 _ = col{Foo: "hello"} 20 _ = col{Foo: "你好"} // want `string literal contains rune in Han script` 21 22 x := time.Local // want `usage of time.Local` 23 _ = time.Now().In(x) 24 _ = time.Date(2023, 1, 2, 3, 4, 5, 678901234, time.Local) // want `usage of time.Local` 25 }