package
0.0.0-20230530081653-aa867a8b26de
Repository: https://github.com/matrix-org/matrix-static.git
Documentation: pkg.go.dev
# Functions
Bound returns min if val<min, max if val>max, val else.
CalcPaginationStartEnd calculates the slice offsets needed to perform pagination for desired page, pageSize and length if page=0 it will return slice offsets 0:length-1 for a "get all entries" page.
Max returns the maximal value of ints a and b.
Min returns the minimal value of ints a and b.
StrToIntDefault converts str to its equivalent int, falling back to def if str does not represent an int.