Know your way around Golang
Golang Introduction
Working with Cosmos also often means working with Golang. If you have not worked much with Go, do not worry.
This introduction to Golang is meant as a useful overview of Go and as such, a starting point for your journey in the Cosmos Ecosystem and developing with the Cosmos SDK.
You can also use it as a refresher if you feel a bit rusty when it comes to Go.
# In this chapter
In this chapter, you will:
- Get a high-level introduction to Golang.
- Discover basic types, string formatting, functions, and methods.
- Begin exploring interfaces in Go.
- Find an introduction to control structures in Go with a closer look at
if
,switch
, andfor
statements. - Learn more about arrays and slices, as well as standard packages Go offers.
- Take a look at Go's built-in concurrency by exploring Goroutine and channels.
First Steps
Get started with Golang
Start here
Go Basics
Basic types, string formatting, functions, and methods
Start here
Go Interfaces
Get an overview of interfaces in Go
Start here
Control Structures in Go
if, switch, and for statements
Start here
Arrays and Slices in Go
A closer look at arrays and slices
Start here
Standard Packages in Go
fmt, strconv, and errors
Start here
Concurrency in Go
Goroutines and Channels
Start here
# Next up
Knowing your way around Golang is part of being a Cosmos SDK developer. If you feel like you need an introduction to Golang or a refresher, the next sections provide an introduction to Golang and working with it.
Feel free to skip this chapter if you do not need a refresher.