Last active
February 22, 2017 22:45
-
-
Save vpolouchkine/14b8aa5b655a021bdd21fd9e157fe4fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
listener := lyft.NewListener("...") | |
listener.RegisterHandler(handleArrived, lyft.RideStatusArrived) | |
http.HandleFunc("/", listener.Handler) | |
http.ListenAndServe(":3000", nil) | |
} | |
func handleArrived(e lyft.IncomingEvent) { | |
fmt.Printf("Your ride is here!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment