-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
52 lines (47 loc) · 1.18 KB
/
Copy pathmain.go
File metadata and controls
52 lines (47 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Golang project template
//
// @title Project API
// @version 1.0.0
// @description Project API documentation
//
// @contact.name API Support
// @contact.url https://github.com/capcom6
// @contact.email i@capcom.me
//
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
//
// @host localhost:3000
// @BasePath /api/v1
//
// @securitydefinitions.apikey BearerAuth
// @in header
// @name Authorization
package main
import (
"runtime"
"strconv"
"github.com/bit-issues/backend/internal"
"github.com/go-core-fx/healthfx"
"github.com/samber/lo"
)
//go:generate swag init --parseDependency --outputTypes go -g ./main.go -o ./internal/server/docs
//go:generate npm --prefix frontend ci
//go:generate npm --prefix frontend run build
//nolint:gochecknoglobals // build metadata
var (
appVersion = "dev"
appReleaseID = "0"
appBuildDate = "unknown"
appGitCommit = "unknown"
appGoVersion = runtime.Version()
)
func main() {
internal.Run(healthfx.Version{
Version: appVersion,
ReleaseID: lo.Must1(strconv.Atoi(appReleaseID)),
BuildDate: appBuildDate,
GitCommit: appGitCommit,
GoVersion: appGoVersion,
})
}