In this chapter we will cover the basic keywords and syntax of the Go language. You'll learn the keywords, operators, and delimiters that make up the language. You'll then move into Syntax and Types. Learn how strings are handled as well as UTF-8 text.
You'll also learn about variables, constants, and iota. Then, using those concepts, how to create structs and initialize them.
Arrays in Go are useful when planning for detailed layout of memory. Using arrays can sometimes help avoid allocation. However, their primary use is for the building blocks of slices.
This chapter will cover the basics of creating, initializing, and indexing an array. It will also cover basic ...
Slices wrap arrays in Go, and provide a more general, powerful, and convenient interface to data sequences. In this chapter, you will cover slice basics such as creating, initializing, and iteration. You will also learn how to grow a slice, work with subsets of slices, and slice tricks.