Skip to content

Commit

Permalink
Reflect ProjectsService interface
Browse files Browse the repository at this point in the history
  • Loading branch information
maoertel committed Jan 10, 2025
1 parent dc77816 commit 8e1712f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ Small helper to iterate over resources from the Atlas API that is used in a coup
## Usage

```go
for project, err := range atlasiter.AllProjects(ctx, &client.Client) {
projectsService := mongodbatlas.Client{...}.Projects
ctx := context.Background()

for project, err := range atlasiter.AllProjects(ctx, projectsService) {
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8e1712f

Please sign in to comment.