Skip to content

Instantly share code, notes, and snippets.

@wjkoh
Last active March 13, 2025 06:02
Show Gist options
  • Save wjkoh/7e3429e8e1f99de0b17d284517f427fc to your computer and use it in GitHub Desktop.
Save wjkoh/7e3429e8e1f99de0b17d284517f427fc to your computer and use it in GitHub Desktop.
Go: Using a multi-value function return as arguments
package main
import "fmt"
func main() {
fmt.Println(max(threeInts()))
}
func threeInts() (int, int, int) {
return 32, 8, 64
}
@wjkoh
Copy link
Author

wjkoh commented Mar 13, 2025

Output:

64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment