mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-30 00:46:08 +03:00
11 lines
160 B
Go
11 lines
160 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/weichou1229/go-patterns/playground/singleton/internal"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
var s = internal.GetSingletonObject()
|
||
|
s.SayHi()
|
||
|
}
|