© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Gohttps://doi.org/10.1007/978-1-4842-7355-5_5

5. Operations and Conversions

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe the Go operators, which are used to perform arithmetic, compare values, and create logical expressions that produce true/false results. I also explain the process of converting a value from one type to another, which can be done using a combination of built-in language features and facilities provided by the Go standard library. Table 5-1 puts the Go operations and conversions in context.
Table 5-1

Putting Operations and Conversions in Context

Question

Answer

What are they?

The basic operations are used for arithmetic, ...

Get Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang 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.