awesome-patterns/creational/main.go

13 lines
174 B
Go
Raw Normal View History

2017-11-09 13:22:11 +03:00
package main
import (
"fmt"
"github.com/jianhan/go-patterns/creational/singleton"
)
func main() {
instance := singleton.GetInstance()
fmt.Println(instance.AddOne())
}