Skip to content

Commit

Permalink
- fix: init v2 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElrondfromRussia authored May 28, 2024
1 parent ef1f850 commit 4960994
Show file tree
Hide file tree
Showing 13 changed files with 1,060 additions and 617 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ Lib for working with ldap

```
import (
ldapper "github.com/NGRsoftlab/ngr-ldapper"
ldapper "github.com/NGRsoftlab/ngr-ldapper/v2"
)
```

or (if you want ^^)
or (if you want v1)

```
import (
ldapCommon "github.com/NGRsoftlab/ngr-ldapper"
)
```

# examples (new, get struct, get userInfo)
# example v2 (new, get struct, get userInfo)
```
// create new ldap connection
conn, err := NewLdapConn(user, password,host, port,
Expand All @@ -43,7 +43,7 @@ fmt.Println(userInfo)
```


# examples (old, get struct, get userInfo)
# example v1 (old, get struct, get userInfo)
```
// open-close new conn is inside
ADStruct, err := ReadAdStruct(user, password,
Expand Down
Loading

0 comments on commit 4960994

Please sign in to comment.