mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-01 23:10:01 +00:00
7 lines
166 B
Go
7 lines
166 B
Go
|
package internal
|
||
|
|
||
|
// Align returns 'n' updated to 'alignment' boundary.
|
||
|
func Align(n, alignment int) int {
|
||
|
return (int(n) + alignment - 1) / alignment * alignment
|
||
|
}
|