© 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_18

18. Math Functions and Data Sorting

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe two sets of features. First, I describe the support for performing common mathematical tasks, including generating random numbers. Second, I describe the features for sorting the elements in a slice so they are in order. Table 18-1 puts the math and sorting features in context.
Table 18-1

Putting Math Functions and Sorting Data in Context

Question

Answer

What are they?

The math functions allow common calculations to be performed. Random numbers are numbers generated in a sequence that is difficult to predict. ...

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.