Versions in this module Expand all Collapse all v0 v0.1.0 May 15, 2025 Changes in this version + const BaseUrl + const LoginUrl + const PostUrl + const RawPublicUrl + const RawUrl + type AccountType int + const NormalUser + const ProUser + func (acc AccountType) String() string + type Client struct + func NewClient(userName, password, devKey string) (*Client, error) + func (c *Client) CreatePaste(req *CreatePasteRequest) (string, error) + func (c *Client) DeletePaste(key string) error + func (c *Client) GetRawPublicPasteContent(key string) (string, error) + func (c *Client) GetRawUserPasteContent(key string) (string, error) + func (c *Client) GetUserDetails() (*User, error) + func (c *Client) GetUserPastes() ([]*Paste, error) + type CreatePasteRequest struct + Content string + CreatePasteAsUser bool + Expiration Expiration + Folder string + Format string + Name string + Visibility Visibility + type Expiration string + const Never + const OneDay + const OneHour + const OneMonth + const OneWeek + const OneYear + const SixMonths + const TenMinutes + const TwoWeeks + type Paste struct + CreatedAt time.Time + ExpireDate time.Time + FormatLong string + FormatShort string + Hits int + Key string + Size int + Title string + URL string + Visibility Visibility + func (p *Paste) String() string + type User struct + AccountType AccountType + Avatar string + Email string + Expiration Expiration + Location string + UserName string + Visibility Visibility + Website string + func (u User) String() string + type Visibility int + const Private + const Public + const Unlisted + func (v Visibility) String() string