Introduction

Completed

In the previous module, you configured a Go environment to create and run programs written in Go. You also learned the basics of a Go program's coding structure and how to compile and run an application.

In this module, you'll take a step forward by learning the basic data types available in Go and organizing the code you write in a .go file by using functions. You'll also learn how to manage and write programs in different files under the same package. Finally, you'll learn how to create and use packages in Go.

Learning objectives

In this module, you will:

  • Declare variables and constants
  • Learn about the basic data types available in Go
  • Write functions
  • Create and use packages

Prerequisites

  • A Go environment that's ready to create applications
  • Visual Studio Code with the Go extension installed
  • The ability to create and modify .go files
  • The ability to run Go applications by using the terminal