Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
func addition(a int, b int) int {
return a + b
}
func split(sum int) (x, y int) {
x = sum * 4 / 9
y = sum - x
return
}
func divmod(a, b int) (int, int) {
return a / b, a % b
}
func sum(nombres ...int) int {
total := 0
for _, num := range nombres {
total += num
}
return total
}