Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import "sync" missing in singleton example #29

Open
030 opened this issue Jul 19, 2017 · 2 comments
Open

import "sync" missing in singleton example #29

030 opened this issue Jul 19, 2017 · 2 comments

Comments

@030
Copy link

030 commented Jul 19, 2017

The singleton code does not run

singleton\singleton.go:6: undefined: sync in sync.Once

unless

import "sync"

is added

@LinMAD
Copy link
Contributor

LinMAD commented Jul 20, 2017

@030 Hi. You imported "sync" package? Check that.

P.s. Please provide more information next time :)

@030
Copy link
Author

030 commented Jul 20, 2017

@LinMAD updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants