Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a convenience Name method to the TrustDomain type #228

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Jun 6, 2023

Code that needs a string representing the trust domain name currently goes through the String() method:

var td spiffeid.TrustDomain = ...
var tdName = td.String()

However, the code reads more clearly if we introduce a Name method:

var td spiffeid.TrustDomain = ...
var tdName = td.Name()

Code that needs a string representing the trust domain name currently goes
through the String() method:

```
var td spiffeid.TrustDomain = ...
var tdName = td.String()
```

However, the code reads more clearly if we introduce a Name method:

```
var td spiffeid.TrustDomain = ...
var tdName = td.Name()
```

Signed-off-by: Andrew Harding <[email protected]>
@azdagron azdagron merged commit afa8eae into main Jun 6, 2023
@azdagron azdagron deleted the azdagron/td-name-method branch June 6, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants