mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-24 13:36:03 +03:00
13 lines
176 B
Go
13 lines
176 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/crazybber/go-patterns/creational/singleton"
|
|
)
|
|
|
|
func main() {
|
|
instance := singleton.GetInstance()
|
|
fmt.Println(instance.AddOne())
|
|
}
|