- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleNumError (0.31 sec)
-
src/strconv/example_test.go
fmt.Println("value:", string(v)) fmt.Println("multibyte:", mb) fmt.Println("tail:", t) // Output: // value: " // multibyte: false // tail: Fran & Freddie's Diner\" } func ExampleNumError() { str := "Not a number" if _, err := strconv.ParseFloat(str, 64); err != nil { e := err.(*strconv.NumError) fmt.Println("Func:", e.Func) fmt.Println("Num:", e.Num) fmt.Println("Err:", e.Err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 22:57:37 UTC 2023 - 8.9K bytes - Viewed (0)