mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-12-01 09:26:04 +03:00
13 lines
174 B
Go
13 lines
174 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/jianhan/go-patterns/creational/singleton"
|
|
)
|
|
|
|
func main() {
|
|
instance := singleton.GetInstance()
|
|
fmt.Println(instance.AddOne())
|
|
}
|