Skip to content

Go lang wrapper which will send cricket score events on selected team

License

Notifications You must be signed in to change notification settings

akashshinde/go_cricket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

GoDoc Go Report Card

#Usage

###Import

  import "github.com/akashshinde/go_cricket"

Start cricket watcher

event := make(chan gocricket.ResponseEvent)
cricket := gocricket.NewCricketWatcher("IND",event)

This will start goroutine to check cricket score for India.

###ResponseEvent

type ResponseEvent struct {
    EventType int
    Response
}

you will receive cricket response with EventType

###EventType

	EVENT_NO_CHANGE           = 0
	EVENT_OUT                 = 1
	EVENT_MATCH_STATUS_CHANGE = 2
	EVENT_OVER_CHANGED        = 3
	EVENT_RUN_CHANGE          = 4

About

Go lang wrapper which will send cricket score events on selected team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages