February 2018
Intermediate to advanced
340 pages
9h 43m
English
The Go standard library does not contain any package with a function converting radians to degrees and vice versa. But at least the Pi constant is a part of the math package, so the conversion could be done as shown in the sample code.
The preceding code also presents the approach of defining the custom type with additional methods. These are simplifying the conversion of values by handy API.
Read now
Unlock full access