Add convenience constants for post visibilities

pull/118/head
Ben Lubar 2019-06-13 22:21:37 -05:00 committed by mattn
parent e24991527b
commit 934e685e7a
1 changed files with 8 additions and 0 deletions

View File

@ -240,6 +240,14 @@ func (c *Client) authenticate(ctx context.Context, params url.Values) error {
return nil return nil
} }
// Convenience constants for Toot.Visibility
const (
VisibilityPublic = "public"
VisibilityUnlisted = "unlisted"
VisibilityFollowersOnly = "private"
VisibilityDirectMessage = "direct"
)
// Toot is struct to post status. // Toot is struct to post status.
type Toot struct { type Toot struct {
Status string `json:"status"` Status string `json:"status"`