-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.go
40 lines (32 loc) · 1004 Bytes
/
constants.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
38
39
40
package main
import (
"net/http"
"time"
)
const Name = "HeyRussia"
const Version = "1.0.0"
const Description = "Welcome to The FIFA 2018 World Cup CLI.\n\n\n" +
"Access all the groups, stadiums, teams, standings and live feed from Russia.\n\n\n" +
"Just call Russia!!!\n\n\n" +
"See 'heyrussia --help' to see all the available options."
const Author = "Geek Nat"
const Email = "geeknat7@gmail.com"
const Copyright = "(c) 2018 Geek Nat"
const BaseUrl = "https://raw.githubusercontent.com/openfootball/world-cup.json/master/2018/"
type APIInterface struct {
GetGroups string
GetFeed string
GetStadiums string
GetStandings string
GetTeams string
}
var netClient = &http.Client{
Timeout: time.Second * 10,
}
var API = APIInterface{
GetGroups: BaseUrl + "worldcup.groups.json",
GetFeed: BaseUrl + "worldcup.json",
GetStadiums: BaseUrl + "worldcup.stadiums.json",
GetStandings: BaseUrl + "worldcup.standings.json",
GetTeams: BaseUrl + "worldcup.teams.json",
}