Go Cookbook
上QQ阅读APP看书,第一时间看更新

Data Conversion and Composition

In this chapter, the following recipes will be covered:

  • Converting data types and interface casting
  • Working with numeric data types using math and math/big
  • Currency conversions and float64 considerations
  • Using pointers and SQL NullTypes for encoding and decoding
  • Encoding and decoding Go data
  • Struct tags and basic reflection in Go
  • Implementing collections via closures