-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfabricorgi.go
37 lines (31 loc) · 1.2 KB
/
fabricorgi.go
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
package main
import (
"log"
"github.com/fabricorgi/cmd/api"
"github.com/fabricorgi/config"
)
func main() {
initController()
}
func initController() {
log.Println(
`
________ ________ ________ ________ ___ ________ ________ ________ ________ ___
|\ _____\\ __ \|\ __ \|\ __ \|\ \|\ ____\|\ __ \|\ __ \|\ ____\|\ \
\ \ \__/\ \ \|\ \ \ \|\ /\ \ \|\ \ \ \ \ \___|\ \ \|\ \ \ \|\ \ \ \___|\ \ \
\ \ __\\ \ __ \ \ __ \ \ _ _\ \ \ \ \ \ \ \\\ \ \ _ _\ \ \ __\ \ \
\ \ \_| \ \ \ \ \ \ \|\ \ \ \\ \\ \ \ \ \____\ \ \\\ \ \ \\ \\ \ \|\ \ \ \
\ \__\ \ \__\ \__\ \_______\ \__\\ _\\ \__\ \_______\ \_______\ \__\\ _\\ \_______\ \__\
\|__| \|__|\|__|\|_______|\|__|\|__|\|__|\|_______|\|_______|\|__|\|__|\|_______|\|__|`)
log.Println(`--------- Getting ENV-variables ---------`)
initialiseControllerConfig()
log.Println("--------- Complete ENV-variables ---------")
log.Println("--------- Starting serve requests ---------")
api.InitialiseAPI()
}
func initialiseControllerConfig() {
err := config.GetEnvironmentVariables()
if err != nil {
log.Fatalf("Error while call method GetEnvironmentVariables, %v", err)
}
}