github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/sloglint_args_on_sep_lines.go (about) 1 //go:build go1.21 2 3 //golangcitest:args -Esloglint 4 //golangcitest:config_path testdata/configs/sloglint_args_on_sep_lines.yml 5 package testdata 6 7 import "log/slog" 8 9 func test() { 10 slog.Info("msg", "foo", 1) 11 slog.Info("msg", 12 "foo", 1, 13 "bar", 2, 14 ) 15 16 slog.Info("msg", "foo", 1, "bar", 2) // want `arguments should be put on separate lines` 17 }