golang 之单态模式(singleton)

Markwei ·
GetInstance().AddOne()这样子啊
#2
更多评论
这代码有问题吧 type singleton struct 这里singleton是小写,是private的 下面AddOne函数别人也调不了的吧
#1