import "sync" missing in singleton example
030 opened this issue · comments
Ben van B commented
The singleton code does not run
singleton\singleton.go:6: undefined: sync in sync.Once
unless
import "sync"
is added
Artjoms Nemiro commented
@030 Hi. You imported "sync" package? Check that.
P.s. Please provide more information next time :)