Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tedchamb committed Jul 24, 2019
1 parent 0f6c21f commit caa3c8e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ func main() {
organizationUrl := "https://dev.azure.com/myorg" // todo: replace value with your organization url
personalAccessToken := "XXXXXXXXXXXXXXXXXXXXXXX" // todo: replace value with your PAT
// Create a connection to your organization
connection := azureDevops.NewConnection(organizationUrl, personalAccessToken)
ctx := context.Background()
// Create a client to interact with the Core area
coreClient, err := core.NewClient(ctx, *connection)
if err != nil {
log.Fatal(err)
}
// Get a list of all team projects
teamProjectReferences, err := coreClient.GetProjects(ctx, core.GetProjectsArgs{})
if err != nil {
log.Fatal(err)
}
// Print the list of team project names for your organization
for index, teamProjectReference := range *teamProjectReferences {
log.Printf("Name[%v] = %v", index, *teamProjectReference.Name)
}
// Create a connection to your organization
connection := azureDevops.NewConnection(organizationUrl, personalAccessToken)
ctx := context.Background()
// Create a client to interact with the Core area
coreClient, err := core.NewClient(ctx, *connection)
if err != nil {
log.Fatal(err)
}
// Get a list of all team projects
teamProjectReferences, err := coreClient.GetProjects(ctx, core.GetProjectsArgs{})
if err != nil {
log.Fatal(err)
}
// Print the list of team project names for your organization
for index, teamProjectReference := range *teamProjectReferences {
log.Printf("Name[%v] = %v", index, *teamProjectReference.Name)
}
}
```

Expand Down

0 comments on commit caa3c8e

Please sign in to comment.