Skip to content
Simple Go library for Twitter
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Go Twitter

This is a simple module to communicate with the Twitter API.

Note: This is library is currently very simple and only supports use of the stream API.


go get


Stream tweets in real time

package main

import (

func main() {
    stream := &twitter.StreamApi{"username", "password"}

    tweets := make(chan *twitter.Tweet)
    go stream.StatusesFilter([]string{"hello"}, tweets)
    for tweet := range tweets {
        fmt.Printf("@%s: \"%s\"\n", tweet.User.ScreenName, tweet.Text)
Something went wrong with that request. Please try again.