github.com/nathan-osman/go-sechat (go): Package go-sechat aims to bridge the gap between the Stack Exchange chat network and Go applications by providing a simple interface with native Go primitives.  In order to make requests, create a `Conn` object:  Since authentication and connection are done asynchronously, waiting for them to complete is highly recommended:  To join an additional room, use the `Join()` method:  To leave, use the (appropriately named) `Leave()` method:  To obtain a list of users in the room, use `UsersInRoom()`:  To obtain a list of rooms that a user is in, use `User()`:  The `NewRoom()` method can be used to create new rooms:  In the example above, `r` is an `int` containing the ID of the new room that was created.  To receive events from the chat server, simply receive from the `Events` channel in `Conn`:  To post a message, simply invoke `Send()`:  If the message is in response to an earlier event, the `Reply()` method is also available:  To upload an image, prepare an `io.Reader` and pass it to `Image()`:  In the example above, `u` is the URL of the newly uploaded image.
Keywords: golang|stack-exchange|stack-exchange-chat