Skip to content

Instantly share code, notes, and snippets.

@ruggi
Created January 17, 2018 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruggi/61c9e4af55c2f9e49f4a6ccbea59832c to your computer and use it in GitHub Desktop.
Save ruggi/61c9e4af55c2f9e49f4a6ccbea59832c to your computer and use it in GitHub Desktop.
// WithFollowingFilter adds the filter parameter to API calls, used when retrieving
// following feeds, allowing the check whether certain feeds are being followed.
func WithFollowingFilter(ids ...string) FollowingOption {
return FollowingOption{makeRequestOption("filter", strings.Join(ids, ","))}
}
// WithFollowingLimit limits the number of followings in the response to the provided limit.
func WithFollowingLimit(limit int) FollowingOption {
return FollowingOption{withLimit(limit)}
}
// WithFollowingOffset returns followings starting from the given offset.
func WithFollowingOffset(offset int) FollowingOption {
return FollowingOption{withOffset(offset)}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment