mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Improve updater.Resource.Export() documentation
This commit is contained in:
parent
e7d9ee9db0
commit
aef3f523ce
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ func (rv *ResourceVersion) isBetaVersionNumber() bool { //nolint:unused
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export makes a copy of the resource with only the exposed information.
|
// Export makes a copy of the resource with only the exposed information.
|
||||||
|
// Attributes are copied and safe to access.
|
||||||
|
// Any ResourceVersion must not be modified.
|
||||||
func (res *Resource) Export() *Resource {
|
func (res *Resource) Export() *Resource {
|
||||||
res.Lock()
|
res.Lock()
|
||||||
defer res.Unlock()
|
defer res.Unlock()
|
||||||
|
|
Loading…
Add table
Reference in a new issue