Beberapa jenis pengembalian di golang
func getMessage() (a string, b string) {
return "Hello", "World"
}
Harendra
func getMessage() (a string, b string) {
return "Hello", "World"
}
func function_name(a int, b string)(int, string){
// code...
return 1, "World"
}
a, b := getMessage()