- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExamplePrint (0.12 sec)
-
src/fmt/example_test.go
n, err := fmt.Sscanf("Kim is 22 years old", "%s is %d years old", &name, &age) if err != nil { panic(err) } fmt.Printf("%d: %s, %d\n", n, name, age) // Output: // 2: Kim, 22 } func ExamplePrint() { const name, age = "Kim", 22 fmt.Print(name, " is ", age, " years old.\n") // It is conventional not to worry about any // error returned by Print. // Output: // Kim is 22 years old. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 21:03:10 UTC 2019 - 11.8K bytes - Viewed (0)