mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-02 23:57:30 +02:00
``` * use go 1.17 semantics in go.mod * pin tonistiigi/fsutil dep to match docker/docker's dep go get -u ./... go mod vendor ```
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
|
|
}
|