func normalizeRegistries(regs *registries) {
	for i := range regs.Registries {
		regs.Registries[i] = strings.TrimRight(regs.Registries[i], "/")
	}
}
func normalizeRegistries(regs *registries) {
	for i := range regs.Registries {
		regs.Registries[i] = strings.TrimRight(regs.Registries[i], "/")
	}
}
func normalizeRegistries ( regs * registries ) { for i := range regs . Registries { regs . Registries [ i ] = strings . TrimRight ( regs . Registries [ i ] , " " ) } }
// normalizeRegistries removes trailing slashes from registries, which is a
// common pitfall when configuring registries (e.g., "docker.io/library/).
normalizeRegistries removes trailing slashes from registries which is a common pitfall when configuring registries ( e . g . docker . io / library / ) .