Skip to content

Commit a3ce042

Browse files
Work around build error introduced by the new 'go vet' tests analyser in v1.24 (denisenkom#259)
Build's started failing under Go v1.24 which were traced back to a new 'go vet' analyser. Changing the function name in this patch marked it as an example for the package as a whole - as long as the part under the underscore is in lower-case. See: https://go.dev/blog/examples
1 parent 6b3e174 commit a3ce042

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lastinsertid_example_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import (
99
)
1010

1111
// This example shows the usage of Connector type
12-
func ExampleLastInsertId() {
13-
12+
func Example_lastinsertid() {
1413
connString := makeConnURL().String()
1514

1615
db, err := sql.Open("sqlserver", connString)

0 commit comments

Comments
 (0)