mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:08:53 +08:00
15 lines
227 B
Go
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
|
|
}
|