Add convenience constants for post visibilities

This commit is contained in:
Ben Lubar 2019-06-13 22:21:37 -05:00 committed by mattn
parent e24991527b
commit 934e685e7a

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"`