Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a convenience Name method to the TrustDomain type (#228)
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]>
- Loading branch information