Documentation ¶
Overview ¶
Package twtr is the backend to the twtr twtxt client.
go get duriny.envs.sh/twtr/pkg
This serves as an API and backend for the command line client, but also allows custom frontends to be built around it. See the cmd package for the reference frontend.
Index ¶
Constants ¶
View Source
const Version = "v0.2.0"
Version of the twtr client.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Timeout for all network activity, defaults to no timeout. Timeout time.Duration // Feed to write tweets to, if unset, tweets will be discarded. Feed io.Writer // PreTweet is a Hook that is executed directly before a tweet is posted. PreTweet Hook // PostTweet is a Hook that is executed, directly after a tweet is posted. PostTweet Hook }
Client is an instance of the twtr client.
Configure the client as desired.
Click to show internal directories.
Click to hide internal directories.