mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 15:53:00 +03:00
23 lines
406 B
Go
23 lines
406 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
_ "time/tzdata"
|
|
|
|
"github.com/pocket-id/pocket-id/backend/internal/cmds"
|
|
"github.com/pocket-id/pocket-id/backend/internal/common"
|
|
)
|
|
|
|
// @title Pocket ID API
|
|
// @version 1.0
|
|
// @description.markdown
|
|
|
|
func main() {
|
|
if err := common.ValidateEnvConfig(&common.EnvConfig); err != nil {
|
|
fmt.Fprintf(os.Stderr, "config error: %v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
cmds.Execute()
|
|
}
|