Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
irahardianto committed Dec 16, 2017
1 parent ac6115f commit c68394b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ PlayerController -> implement IPlayerService, instead of direct PlayerService


type PlayerController struct {
PlayerService interfaces.IPlayerService
PlayerHelper helpers.PlayerHelper
PlayerService interfaces.IPlayerService
PlayerHelper helpers.PlayerHelper
}

func (controller *PlayerController) GetPlayerScore(res http.ResponseWriter, req *http.Request) {
Expand Down Expand Up @@ -120,15 +120,15 @@ PlayerService -> implement IPlayerRepository, instead of direct PlayerRepository
//Handle error
}

if player1.Score < 4 && player2.Score < 4 && !(player1.Score+player2.Score == 6) {
if player1.Score < 4 && player2.Score < 4 && !(player1.Score+player2.Score == 6) {

s := baseScore[player1.Score]

if player1.Score == player2.Score {
result = s + "-All"
} else {
result = s + "-" + baseScore[player2.Score]
}
if player1.Score == player2.Score {
result = s + "-All"
} else {
result = s + "-" + baseScore[player2.Score]
}
}

if player1.Score == player2.Score {
Expand Down Expand Up @@ -502,4 +502,4 @@ As you see here, it is very easy to implement hystrix-go circuit breaker, you ju


Cheers,
M. Ichsan Rahardianto.
M. Ichsan Rahardianto.

0 comments on commit c68394b

Please sign in to comment.