Versions in this module Expand all Collapse all v0 v0.3.0 Nov 7, 2018 v0.2.0 Nov 7, 2018 Changes in this version type Client + HTTPClient *http.Client v0.1.0 Jun 14, 2018 Changes in this version + const ExpireAfterReading + const ExpireNever + var DefaultClient = &Client + func Put(p Paste, r io.Reader, encrypt bool) (string, error) + type Client struct + Base *url.URL + Key string + func NewClient() *Client + func (c Client) Get(id string) (*Paste, error) + func (c Client) New() Paste + func (c Client) Put(p Paste, r io.Reader, crypt bool) (string, error) + type Paste struct + Author string + Expire time.Duration + Lang string + Private bool + ReplyTo string + Title string + func Get(id string) (*Paste, error) + func (p *Paste) Close() error + func (p *Paste) Read(bs []byte) (int, error)