© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. Feigenbaum, Ph.D.Go for Java Programmershttps://doi.org/10.1007/978-1-4842-7199-5_17

17. Go Runtime

Barry Feigenbaum, Ph.D.1  
(1)
Austin, TX, USA
 

This chapter surveys several Go packages related to the Go runtime.

Errors Package

The errors package provides functions to help create and select errors. Many community extensions, some drop-in replacements, exist.

There is a built-in error type. All errors implement this predefined interface:
type error interface {
      Error() string
}
This means any type that conforms to this interface (i.e., has the Error method) can be used as an error. This means many custom errors can be created. Many Go packages provide custom ...

Get Go for Java Programmers: Learn the Google Go Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.