go-twitter

One of the first go libraries, targets the old Twitter API which no longer works

OTHER License

Stars
49

============
go-twitter

go-twitter is a Twitter library package for Go. The interface is similar to python-twitter.

Installation

#. Make sure you have Go installed and your environment is set up correctly: $GOROOT, $GOARCH, $GOBIN, etc.

#. Checkout the code from the repository or extract the source code.

#. cd go-twitter && make install

Quick Start

::

import ( "go-twitter" "fmt"

) // Prints the public timeline func main() { api := twitter.NewApi(); pubTimeline := <-api.GetPublicTimeline();

for i, status := range pubTimeline {
  fmt.Printf("#%d %s: %s\n", i,
            status.GetUser().GetScreenName(),
            status.GetText());
}

}

Documentation

doc/ - godoc generated files, site coming soon

Package Rankings
Top 5.8% on Proxy.golang.org