awesome-patterns/creational/main.go

13 lines
176 B
Go
Raw Normal View History

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