summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/work_vet.txt
blob: f95caddad675c495c5e2e8712fb9cbc9ed99869d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! go vet ./a
stderr 'fmt.Println call has possible Printf formatting directive'

-- go.work --
go 1.18

use ./a
-- a/go.mod --
module example.com/a

go 1.18
-- a/a.go --
package a

import "fmt"

func A() {
    fmt.Println("%s")
}