MCPcopy Create free account
hub / github.com/ez4o/github-contribution-graph / main

Function main

main.go:22–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func main() {
23 configFile, err := os.Open("config.json")
24 if err != nil {
25 log.Fatalln("Error while opening config:", err)
26 }
27 defer configFile.Close()
28
29 decoder := json.NewDecoder(configFile)
30 configuration := model.Configuration{}
31
32 err = decoder.Decode(&configuration)
33 if err != nil {
34 log.Fatalln("Error while parsing config:", err)
35 }
36
37 s := &server.Server{GitHubToken: configuration.GitHubToken}
38 s.Start()
39}

Callers

nothing calls this directly

Calls 1

StartMethod · 0.95

Tested by

no test coverage detected