Alexey Ugnichev

17%
Flag icon
} In fact even the simple Print-functions of fmt (see § 4.4.3) also return 2 values:    count, err := fmt.Println(x) // number of bytes printed, nil or 0, error When printing to the console these are not checked, but when printing to files, network connections, etc. the error value should always be checked. (see also Exercise 6.1b)
The Way to Go: A Thorough Introduction to the Go Programming Language
Rate this book
Clear rating
Open Preview