fix golint issues in core/syncx (#526)
This commit is contained in:
@@ -2,6 +2,7 @@ package syncx
|
||||
|
||||
import "sync"
|
||||
|
||||
// Once returns a func that guanartees fn can only called once.
|
||||
func Once(fn func()) func() {
|
||||
once := new(sync.Once)
|
||||
return func() {
|
||||
|
||||
Reference in New Issue
Block a user