Skip to content

Commit 88ef5f1

Browse files
author
Gustavo Bazan
authored
chore(fmt): run go fmt on examples (#154)
1 parent ec2c8b0 commit 88ef5f1

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

examples/basic/basic.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ func main() {
4747
projectId := projects.GetResults()[0].GetId()
4848
fmt.Printf("Project we use %v", projectId)
4949
}
50-

examples/db_users/db_users.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ func main() {
3636
current := new(admin.CloudDatabaseUser)
3737
update(current)
3838

39-
_, response, err:= sdk.ProjectsApi.GetProject(ctx, current.GroupId).Execute()
39+
_, response, err := sdk.ProjectsApi.GetProject(ctx, current.GroupId).Execute()
4040
if err != nil {
4141
fmt.Println("Project missconfigured. Did you set the correct values in update() function?")
4242
examples.HandleErr(err, response)
4343
}
4444

4545
params := &admin.UpdateDatabaseUserApiParams{
46-
GroupId: current.GroupId,
47-
DatabaseName: current.DatabaseName,
48-
Username: current.Username,
46+
GroupId: current.GroupId,
47+
DatabaseName: current.DatabaseName,
48+
Username: current.Username,
4949
CloudDatabaseUser: current,
5050
}
5151
dbUser, response, err := sdk.DatabaseUsersApi.UpdateDatabaseUserWithParams(ctx, params).Execute()

examples/regions/regions.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ func main() {
2929
examples.HandleErr(err, nil)
3030

3131
// -- 1. Get first project
32-
projects, response, err := sdk.ProjectsApi.ListProjectsWithParams(ctx,
32+
projects, response, err := sdk.ProjectsApi.ListProjectsWithParams(ctx,
3333
&admin.ListProjectsApiParams{
3434
ItemsPerPage: admin.PtrInt(1),
3535
IncludeCount: admin.PtrBool(true),
36-
PageNum: admin.PtrInt(1),
37-
}).Execute()
36+
PageNum: admin.PtrInt(1),
37+
}).Execute()
3838
examples.HandleErr(err, response)
3939

4040
if projects.GetTotalCount() == 0 {
4141
log.Fatal("account should have at least single project")
4242
}
4343

4444
projectId := projects.GetResults()[0].GetId()
45-
providers := []string{"AWS","GCP","AZURE"}
46-
regions,response, err := sdk.ClustersApi.ListCloudProviderRegions(ctx,projectId).Providers(providers).Execute()
47-
examples.HandleErr(err,response)
48-
fmt.Println(regions);
45+
providers := []string{"AWS", "GCP", "AZURE"}
46+
regions, response, err := sdk.ClustersApi.ListCloudProviderRegions(ctx, projectId).Providers(providers).Execute()
47+
examples.HandleErr(err, response)
48+
fmt.Println(regions)
4949
}

0 commit comments

Comments
 (0)