19 lines
347 B
Go
19 lines
347 B
Go
package with
|
|
|
|
import (
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|
"git.apinb.com/bsm-sdk/core/errcode"
|
|
"git.apinb.com/bsm-sdk/core/print"
|
|
)
|
|
|
|
func InitData() {
|
|
// Execute the Init function if it's not nil
|
|
if database.InitFunc != nil {
|
|
err := (*database.InitFunc)()
|
|
if err != nil {
|
|
print.Error(errcode.ErrEtcd.Error())
|
|
panic(err)
|
|
}
|
|
}
|
|
}
|