Last active
March 13, 2025 06:02
-
-
Save wjkoh/7e3429e8e1f99de0b17d284517f427fc to your computer and use it in GitHub Desktop.
Go: Using a multi-value function return as arguments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
fmt.Println(max(threeInts())) | |
} | |
func threeInts() (int, int, int) { | |
return 32, 8, 64 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: