Programming Code Center(PCC)
[GO]

(PCC)::[How-to-use-2-different-return-values-from-the-call-with-multiple-assignment-in-go-language]::[go]

File Name : multiple-return.go

package main

import "fmt"

func vals() (int, int) {
    return 3, 7
}

func main() {

    a, b := vals()
    fmt.Println(a)
    fmt.Println(b)

    _, c := vals()
    fmt.Println(c)
}

Output :

multiple-return.jpg