Skip to content

Commit

Permalink
improve OrganizationID.String() description
Browse files Browse the repository at this point in the history
  • Loading branch information
KenSpur committed Sep 7, 2023
1 parent 75de244 commit ac65855
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/services/iotcentral/parse/organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ func (id OrganizationId) ID() string {

func (id OrganizationId) String() string {
components := []string{
fmt.Sprintf("DomainSuffix %q", id.DomainSuffix),
fmt.Sprintf("Sub Domain %q", id.SubDomain),
fmt.Sprintf("Id %q", id.OrganizationId),
fmt.Sprintf("DomainSuffix: %q", id.DomainSuffix),
fmt.Sprintf("SubDomain: %q", id.SubDomain),
fmt.Sprintf("Path: %q", "/api/organizations/"),
fmt.Sprintf("OrganizationId: %q", id.OrganizationId),
}
return fmt.Sprintf("Iot Central OrganizationId %s", strings.Join(components, " / "))
return fmt.Sprintf("Iot Central OrganizationId %s", strings.Join(components, "\n"))
}

func ParseOrganizationID(id string, subDomain string, domainSuffix string) (*OrganizationId, error) {
Expand Down

0 comments on commit ac65855

Please sign in to comment.