Skip to content
Snippets Groups Projects
Commit b68c2730 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Work in progress

parent 13a33244
No related branches found
No related tags found
No related merge requests found
package main
import "sync"
type gateway struct {
devices []BridgeDevice
}
var instance *gateway
var once sync.Once
func GetGW() *gateway {
once.Do(func() {
instance = &gateway{}
})
return instance
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment