From 1ddcc97a3747262c91e52f4838fbcb5aece5b63f Mon Sep 17 00:00:00 2001 From: Christopher Puschmann Date: Mon, 14 Apr 2025 23:05:50 +0200 Subject: [PATCH] chore: update `DirSync` and `DirSyncAsync` example codes to use `DialURL` instead of the already deprecated `Dial` function --- v3/examples_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v3/examples_test.go b/v3/examples_test.go index 817016b6..e4e980d8 100644 --- a/v3/examples_test.go +++ b/v3/examples_test.go @@ -415,7 +415,7 @@ func ExampleControlPaging_manualPaging() { // This example demonstrates how to use DirSync to manually execute a // DirSync search request func ExampleConn_DirSync() { - conn, err := Dial("tcp", "ad.example.org:389") + conn, err := DialURL("ldap://ad.example.org:389") if err != nil { log.Fatalf("Failed to connect: %s\n", err) } @@ -468,7 +468,7 @@ func ExampleConn_DirSync() { // This example demonstrates how to use DirSync search asynchronously func ExampleConn_DirSyncAsync() { - conn, err := Dial("tcp", "ad.example.org:389") + conn, err := DialURL("ldap://ad.example.org:389") if err != nil { log.Fatalf("Failed to connect: %s\n", err) }