![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [github.com/containerd/cgroups/v3](https://github.com/containerd/cgroups) from 3.0.2 to 3.0.3. - [Release notes](https://github.com/containerd/cgroups/releases) - [Commits](https://github.com/containerd/cgroups/compare/v3.0.2...v3.0.3) --- updated-dependencies: - dependency-name: github.com/containerd/cgroups/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
9 lines
219 B
Go
9 lines
219 B
Go
package internal
|
|
|
|
import "golang.org/x/exp/constraints"
|
|
|
|
// Align returns 'n' updated to 'alignment' boundary.
|
|
func Align[I constraints.Integer](n, alignment I) I {
|
|
return (n + alignment - 1) / alignment * alignment
|
|
}
|