concept detail in category go

This is an excerpt from Manning's book Go in Practice.
In this example, each return is defined in the function definition after the arguments
. In this case, there are two string values. When return is called, it returns two strings
to match the definition. When the Names function is called, you need to have a variable for each return to capture the value
. But if you want to ignore one of the returned values, use _ instead of a variable name
. (Don’t worry too much about the details of this example. You’ll come back to these concepts, libraries, and tools in the coming chapters.)
If the application code that calls methods such as Load and Save is going to display errors to end users or attempt to detect meaning from the errors in order to act on them, you can quickly run into problems when working with multiple cloud providers. Each cloud provider, SDK, or implementation can have different errors. Instead of having a clean interface, such as the File interface in listing 9.1, the application code needs to know details about the implementations errors.
The runtime has access to a wealth of information. That includes the number of processors seen by the application, current number of goroutines, details on memory allocation and usage, details on garbage collection, and more. This information can be useful for identifying problems within the application or for triggering events such as horizontal scaling.
. In this case, there are two string values. When return is called, it returns two strings
to match the definition. When the Names function is called, you need to have a variable for each return to capture the value
. But if you want to ignore one
. (Don’t worry too much about the details of this example. You’ll come back to these concepts, libraries, and tools in the coming chapters.)