tmrts / go-patterns

Curated list of Go design patterns, recipes and idioms

Home Page:http://tmrts.com/go-patterns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import "sync" missing in singleton example

030 opened this issue · comments

The singleton code does not run

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

unless

import "sync"

is added

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

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

@LinMAD updated