Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created September 3, 2022 19:03
Show Gist options
  • Save madflojo/4ba0a9e286af6a0dc6735b2f5024bd02 to your computer and use it in GitHub Desktop.
Save madflojo/4ba0a9e286af6a0dc6735b2f5024bd02 to your computer and use it in GitHub Desktop.
ThreadSafe Packages - Name
// 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