Created
September 3, 2022 19:03
-
-
Save madflojo/4ba0a9e286af6a0dc6735b2f5024bd02 to your computer and use it in GitHub Desktop.
ThreadSafe Packages - Name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name will return the current Directory name. | |
func (d *Directory) Name() string { | |
d.RLock() | |
defer d.RUnlock() | |
return d.name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment