Skip to content

Commit 3b273cd

Browse files
committed
golangci-lint --fix
1 parent 584d3e3 commit 3b273cd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

client/example_client_test.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ func Example() {
1111
// Connect MySQL at 127.0.0.1:3306, with user root, an empty password and database test
1212
conn, err := client.Connect("127.0.0.1:3306", "root", "", "test")
1313
// Or to use SSL/TLS connection if MySQL server supports TLS
14-
//conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.UseSSL(true)})
15-
14+
// conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.UseSSL(true)})
1615
// Or to set your own client-side certificates for identity verification for security
17-
//tlsConfig := NewClientTLSConfig(caPem, certPem, keyPem, false, "your-server-name")
18-
//conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.SetTLSConfig(tlsConfig)})
16+
// tlsConfig := NewClientTLSConfig(caPem, certPem, keyPem, false, "your-server-name")
17+
// conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.SetTLSConfig(tlsConfig)})
1918
if err != nil {
2019
msg := fmt.Sprintf(`
2120
This example needs a MySQL listening on 127.0.0.1:3006 with user "root" and

0 commit comments

Comments
 (0)