Skip to content

Commit 7d9ad5b

Browse files
author
CSTDev
committed
Change import from .
1 parent 3e03da7 commit 7d9ad5b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cmd/cli/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"io/ioutil"
88

9-
. "github.com/cstdev/moonapi"
9+
"github.com/cstdev/moonapi"
1010
"github.com/cstdev/moonapi/utils"
1111
)
1212

@@ -18,8 +18,8 @@ func check(e error) {
1818
}
1919
}
2020

21-
func login(username string, password string) MoonBoard {
22-
var moonBoardSession = MoonBoard{}
21+
func login(username string, password string) moonapi.MoonBoard {
22+
var moonBoardSession = moonapi.MoonBoard{}
2323

2424
fmt.Printf("Hello %s \n", username)
2525
err := moonBoardSession.Login(username, password)
@@ -35,23 +35,23 @@ func login(username string, password string) MoonBoard {
3535
return moonBoardSession
3636
}
3737

38-
func reuseSession() MoonBoard {
38+
func reuseSession() moonapi.MoonBoard {
3939
// For testing so I don't actually log in each time.
4040
tokens, err := ioutil.ReadFile(filePath)
4141

42-
var testAuth []AuthToken
42+
var testAuth []moonapi.AuthToken
4343

4444
err = json.Unmarshal([]byte(tokens), &testAuth)
4545
check(err)
46-
var moonBoardSession = MoonBoard{}
46+
var moonBoardSession = moonapi.MoonBoard{}
4747
moonBoardSession.SetAuth(testAuth)
4848

4949
fmt.Printf("%+v\n", moonBoardSession)
5050
return moonBoardSession
5151
}
5252

5353
func main() {
54-
var moonBoardSession = MoonBoard{}
54+
var moonBoardSession = moonapi.MoonBoard{}
5555

5656
var shouldLogin = flag.Bool("login", false, "Whether to log in or use cached credentials.")
5757
var username = flag.String("user", "", "Enter a username to log in with.")
@@ -96,6 +96,6 @@ func main() {
9696
check(err)
9797

9898
fmt.Printf("\n\n Number of Problems: %d\n\n", problems.Total)
99-
fmt.Println(ProblemsAsJSON(problems.Data))
99+
fmt.Println(moonapi.ProblemsAsJSON(problems.Data))
100100

101101
}

0 commit comments

Comments
 (0)