Working with Basic Go Data Types

The previous chapter talked about many fascinating topics including the way the Go garbage collector works, the panic() and recover() functions, the unsafe package, how to call C code from a Go program, and how to call Go code from a C program, as well as the node tree created by the Go compiler when compiling a Go program.

The core subject of this chapter is the basic data types of Go. This list includes numeric types, arrays, slices, and maps. Despite their simplicity, these data types can help you to make numeric calculations. You can also store, retrieve, and alter the data of your programs in a very convenient and quick way. The chapter also covers pointers, constants, loops, and working with dates and ...

Get Mastering Go - Second Edition 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.