The Uses of Composite Types

In the previous chapter, we talked about many core Go topics, including numeric data types, arrays, slices, maps, pointers, constants, the for loop, the range keyword, and how to work with times and dates.

This chapter will explore more advanced Go features, such as tuples and strings, the strings standard Go package, and the switch statement, but, most importantly, it will look at structures, which are used extensively in Go.

The chapter will also show you how to work with JavaScript Object Notation (JSON) and Extensible Markup Language (XML) text files, how to implement a simple key-value store, how to define regular expressions, and how to perform pattern matching in Go.

The following topics will be covered: ...

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.