コード例 #1
0
ファイル: utils.go プロジェクト: nerdzeu/nerdz-api
// 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))
}
コード例 #2
0
ファイル: utils.go プロジェクト: nerdzeu/nerdz-api
// 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))
}
コード例 #3
0
ファイル: utils.go プロジェクト: nerdzeu/nerdz-api
// 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))
}