mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
22 lines
310 B
Go
22 lines
310 B
Go
package app
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/pocketbase/pocketbase"
|
|
)
|
|
|
|
var instance *pocketbase.PocketBase
|
|
|
|
var intanceOnce sync.Once
|
|
|
|
func GetApp() *pocketbase.PocketBase {
|
|
intanceOnce.Do(func() {
|
|
instance = pocketbase.NewWithConfig(pocketbase.Config{
|
|
HideStartBanner: true,
|
|
})
|
|
})
|
|
|
|
return instance
|
|
}
|