Skip to content

Commit 2e2bd4d

Browse files
committed
updated imports to github links and edited README
1 parent 64ab3cf commit 2e2bd4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+131
-80
lines changed

README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,56 @@ Desktop aesthetic
3030
- **Odds Display**: Displays moneyline, spreads, totals, and outrights for detailed betting insights.
3131
- **Team Colors**: Custom color coding for each team or outcome, enhancing visual clarity.
3232
- **Mouse Support**: Enables intuitive navigation and interaction within the terminal interface.
33-
- **API Integration**: Utilizes [`the odds-api`](https://the-odds-api.com) to fetch daily updates for data.
33+
- **API Integration**: Utilizes [`the odds-api`](https://the-odds-api.com) to fetch daily updates for sports odds.
34+
- **API Integration**: Utilizes [`the odds-api`](https://the-odds-api.com) to fetch daily updates for sports odds.
35+
36+
## Supported Sports and Leagues
37+
38+
### Football
39+
- **NFL**
40+
- **NCAA**
41+
42+
### Basketball
43+
- **NBA**
44+
- **NCAA**
45+
46+
### Baseball
47+
- **MLB**
48+
- **NCAA**
49+
50+
### Soccer
51+
- **MLS**
52+
- **Brazil Campeonato**
53+
- **Premier League**
54+
- **La Liga**
55+
- **UEFA**
56+
57+
### Hockey
58+
- **NHL**
59+
60+
### Golf
61+
- **PGA Tournament**
62+
- **Masters Tournament**
63+
64+
### Tennis
65+
- **Mens & Womens Wimbledon**
66+
- **Mens & Womens French Open**
67+
68+
### Mixed Martial Arts
69+
- **All major leagues supported**
70+
71+
### Boxing
72+
- **All major leagues supported**
73+
74+
### Cricket
75+
- **IPL**
76+
77+
### Rugby
78+
- **NRL**
79+
3480

3581
## Contributing
82+
3683
For contributions simply fork, create a new branch, and submit for a PR review.
3784

3885
## Social

colors/campeonato_soccer_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var CampeonatoTeamColorMap = map[string]models.TeamColors{
1010
"América Mineiro": {PrimaryColor: "#2E8B57", SecondaryColor: "#FFFFFF"},

colors/colors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package colors
66

77
import (
8-
"oddshub/models"
9-
"oddshub/sports"
8+
"github.com/dos-2/oddshub/models"
9+
"github.com/dos-2/oddshub/sports"
1010
)
1111

1212
var ColorsMap = map[string]map[string]models.TeamColors{

colors/euro_soccer_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var EuroTeamColorMap = map[string]models.TeamColors{
1010
// EPL Teams

colors/ipl_cricket_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var IPLTeamColorMap = map[string]models.TeamColors{
1010
"Chennai Super Kings": {PrimaryColor: "#FFD700", SecondaryColor: "#1A191A"},

colors/mlb_baseball_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var MLBTeamColorMap = map[string]models.TeamColors{
1010
"Arizona Diamondbacks": {PrimaryColor: "#A71930", SecondaryColor: "#E3D4AD"},

colors/mls_soccer_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package colors
66

77
import (
8-
"oddshub/models"
8+
"github.com/dos-2/oddshub/models"
99
)
1010

1111
var MLSTeamColorMap = map[string]models.TeamColors{

colors/nba_basketball_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package colors
66

77
import (
8-
"oddshub/models"
8+
"github.com/dos-2/oddshub/models"
99
)
1010

1111
var NBATeamColorMap = map[string]models.TeamColors{

colors/ncaa_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var NCAATeamColorMap = map[string]models.TeamColors{
1010
"Air Force Falcons": {PrimaryColor: "#004A7F", SecondaryColor: "#FFFFFF"},

colors/nfl_football_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var NFLTeamColorMap = map[string]models.TeamColors{
1010
"Arizona Cardinals": {PrimaryColor: "#97233F", SecondaryColor: "#000000"},

colors/nhl_hockey_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var NHLTeamColorMap = map[string]models.TeamColors{
1010
"Anaheim Ducks": {PrimaryColor: "#F95602", SecondaryColor: "#000000"},

colors/nrl_rugby_colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package colors
66

7-
import "oddshub/models"
7+
import "github.com/dos-2/oddshub/models"
88

99
var NRLTeamColorMap = map[string]models.TeamColors{
1010
"Brisbane Broncos": {PrimaryColor: "#FF6600", SecondaryColor: "#FFFFFF"},

endpoints/getRequests.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import (
1010
"io"
1111
"log"
1212
"net/http"
13-
"oddshub/models"
14-
"oddshub/sports"
1513
"sort"
1614
"sync"
15+
16+
"github.com/dos-2/oddshub/models"
17+
"github.com/dos-2/oddshub/sports"
1718
)
1819

1920
type Events []models.Event

go.mod

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
module oddshub
1+
module github.com/dos-2/oddshub
22

33
go 1.22.1
44

5+
require (
6+
github.com/gdamore/tcell/v2 v2.7.1
7+
github.com/rivo/tview v0.0.0-20240519200218-0ac5f73025a8
8+
)
9+
510
require (
611
github.com/gdamore/encoding v1.0.0 // indirect
7-
github.com/gdamore/tcell v1.4.0 // indirect
8-
github.com/gdamore/tcell/v2 v2.7.1 // indirect
9-
github.com/joho/godotenv v1.5.1 // indirect
10-
github.com/jroimartin/gocui v0.5.0 // indirect
1112
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
1213
github.com/mattn/go-runewidth v0.0.15 // indirect
13-
github.com/nsf/termbox-go v1.1.1 // indirect
14-
github.com/rivo/tview v0.0.0-20240519200218-0ac5f73025a8 // indirect
1514
github.com/rivo/uniseg v0.4.7 // indirect
1615
golang.org/x/sys v0.17.0 // indirect
1716
golang.org/x/term v0.17.0 // indirect

go.sum

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
22
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
3-
github.com/gdamore/tcell v1.4.0 h1:vUnHwJRvcPQa3tzi+0QI4U9JINXYJlOz9yiaiPQ2wMU=
4-
github.com/gdamore/tcell v1.4.0/go.mod h1:vxEiSDZdW3L+Uhjii9c3375IlDmR05bzxY404ZVSMo0=
53
github.com/gdamore/tcell/v2 v2.7.1 h1:TiCcmpWHiAU7F0rA2I3S2Y4mmLmO9KHxJ7E1QhYzQbc=
64
github.com/gdamore/tcell/v2 v2.7.1/go.mod h1:dSXtXTSK0VsW1biw65DZLZ2NKr7j0qP/0J7ONmsraWg=
7-
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
8-
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
9-
github.com/jroimartin/gocui v0.5.0 h1:DCZc97zY9dMnHXJSJLLmx9VqiEnAj0yh0eTNpuEtG/4=
10-
github.com/jroimartin/gocui v0.5.0/go.mod h1:l7Hz8DoYoL6NoYnlnaX6XCNR62G7J5FfSW5jEogzaxE=
11-
github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
125
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
136
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
14-
github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
15-
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
16-
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
177
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
188
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
19-
github.com/nsf/termbox-go v1.1.1 h1:nksUPLCb73Q++DwbYUBEglYBRPZyoXJdrj5L+TkjyZY=
20-
github.com/nsf/termbox-go v1.1.1/go.mod h1:T0cTdVuOwf7pHQNtfhnEbzHbcNyCEcVU4YPpouCbVxo=
21-
github.com/rivo/tview v0.0.0-20240505185119-ed116790de0f h1:DAbaKhyPcZQp/TqlSdUd6Z445PkJb3bI0VccXg22oeg=
22-
github.com/rivo/tview v0.0.0-20240505185119-ed116790de0f/go.mod h1:02iFIz7K/A9jGCvrizLPvoqr4cEIx7q54RH5Qudkrss=
239
github.com/rivo/tview v0.0.0-20240519200218-0ac5f73025a8 h1:HxvWMyQ3vKQBlYZq9wfFtjbUeA6UUYZoLJmmwWee43s=
2410
github.com/rivo/tview v0.0.0-20240519200218-0ac5f73025a8/go.mod h1:02iFIz7K/A9jGCvrizLPvoqr4cEIx7q54RH5Qudkrss=
2511
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
@@ -39,7 +25,6 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
3925
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
4026
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
4127
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
42-
golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
4328
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
4429
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4530
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package main
22

33
import (
44
"log"
5-
"oddshub/ui"
5+
6+
"github.com/dos-2/oddshub/ui"
67
)
78

89
func main() {

slides/boxing.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
package slides
77

88
import (
9-
"oddshub/models"
109
"strings"
1110

11+
"github.com/dos-2/oddshub/models"
12+
1213
"github.com/rivo/tview"
1314
)
1415

slides/brazil_campeonato_soccer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/cover.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ package slides
66

77
import (
88
"fmt"
9-
"oddshub/models"
109
"strings"
1110

11+
"github.com/dos-2/oddshub/models"
12+
1213
"github.com/gdamore/tcell/v2"
1314
"github.com/rivo/tview"
1415
)

slides/epl_soccer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package slides
66

77
import (
8-
"oddshub/models"
8+
"github.com/dos-2/oddshub/models"
99
)
1010

1111
func GetHeader(sport models.Title) string {

slides/ipl_cricket.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/la_liga_soccer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/masters_golf.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/mens_french_open_tennis.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/mens_wimbledon_tennis.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/mlb_baseball.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/mls_soccer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

slides/mma.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package slides
66

77
import (
8-
"oddshub/models"
98
"strings"
109

10+
"github.com/dos-2/oddshub/models"
11+
1112
"github.com/rivo/tview"
1213
)
1314

0 commit comments

Comments
 (0)