Files
the-way-to-go_ZH_CN/eBook/examples/chapter_6/blank_identifier.go
2015-03-03 12:25:25 -05:00

15 lines
227 B
Go

package main
import "fmt"
func main() {
var i1 int
var f1 float32
i1, _, f1 = ThreeValues()
fmt.Printf("The int: %d, the float; %f\n", i1, f1)
}
func ThreeValues() (int, int, float32) {
return 5, 6, 7.5
}