init code

This commit is contained in:
thuanle committed 2024-10-24 09:53:23 +07:00
1 parent a7559b3f9d
commit 92a63c7885
43 files changed
+1115

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package data
import "sync"
var (
Market IMarket
once sync.Once
)
func NewRepository(market IMarket) {
once.Do(
func() {
Market = market
})
}