Exemple #1
0
// AtMostComments returns a uint64 that's the number of comments to be retrieved
func AtMostComments(n uint64) uint8 {
	return uint8(utils.AtMost(n, MinComments, MaxComments))
}
Exemple #2
0
// AtMostPms returns a uint64 that's the number of pms to be retrieved
func AtMostPms(n uint64) uint8 {
	return uint8(utils.AtMost(n, MinPms, MaxPms))
}
Exemple #3
0
// AtMostPosts returns a uint8 that's the number of posts to be retrieved
func AtMostPosts(n uint64) uint8 {
	return uint8(utils.AtMost(n, MinPosts, MaxPosts))
}