mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-13 08:41:15 +00:00
Multiple Parameters
When multiple arguments are of the same type, the type only needs to be declared after the last one, assuming they are in order.
For example:
func add(x, y int) int {
return x + y
}
If they are not in order they need to be defined separately.