Getting Started with Go: Basic Programming
Go
| Beginner
- 17 videos | 2h 12m 1s
- Includes Assessment
- Earns a Badge
Go leverages some of the best features from other languages focusing on a simple, concise program structure and syntax. Go's relatively short learning curve means developers can start developing right away. In this course, you'll explore Go program structure and syntax and the various data types supported by Go. Next, you'll examine various approaches utilized in Go for developing program logic. You'll learn how to declare and initialize variables and constants and explore the specific operators used with different data types. You'll move on to learn how to work with complex data types and how to write code to control the flow of programs by leveraging looping and branching. Lastly, you'll learn how to manipulate and manage strings with various string functions available in Go.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseRecognize go program structure and syntaxList and describe the various data types supported in goDeclare and initialize variables in goDeclare and initialize constants in goRecognize and use operators in goRecognize how scoping rules apply in goCreate and work with arrays in goCreate and work with slices in go
-
Create and work with the map data type in goCreate and work with pointers in goRecognize how control flow statements are used in go to develop program logicUse if, if/else, and switch control flow statements in go to develop program logicCreate and use for loops and branches to control program flow in goLoop over collection data types in goWork with various string manipulation functions in goSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 10sIn this video, you’ll learn more about your instructor and the course. In this course, you’ll learn the GO Program Structure and syntax. Then, you’ll learn to work with variables, constants, and operators. You’ll also examine the various Data Types supported by GO. Finally, you’ll explore how Program Flow Control Logic is implemented in GO. FREE ACCESS
-
9m 35sIn this video, you’ll learn more about Go structure and syntax. First, you’ll learn the Go program basics. The Go program essentially consists of a package declaration, an import block to import other packages, functions, variables statements and expressions, and comments for commenting on sections of code. The syntax for Go is specified using the extended Backus-Naur Form or EBNF. FREE ACCESS
-
6m 45sIn this video, you’ll learn more about data types in Go. In Go, there are Primitive data types. These are the basic native built-in data types, essentially the building blocks of programs in Go. Primitives categorize sets of related values and define how those values are stored. They describe valid operations that can be performed on them. FREE ACCESS
-
6m 13sIn this video, you’ll watch a demo. In this demo, you’ll learn to declare and initialize variables in Go. A variable is a storage construct that has a name and a specific type. The type of variable determines what valid values may be stored by the variable, and with the declaration, storage is reserved for the variable. A variable may be assigned based on a statement or expression. It can be used many ways. FREE ACCESS
-
7m 56sIn this video, you’ll watch a demo. In this demo, you’ll learn how to declare and initialize constants in Go. Constants are storage constructs and work similar to variables in Go, but there's one big difference. Variables can be changed once they're initialized. Constants cannot. Constants are declared with the const keyword, and you’ll have to initialize a constant when declared. There are many different constants. FREE ACCESS
-
9m 58sIn this video, you’ll watch a demo. In this demo, you'll learn to work with operators in Go. To get started, you’ll open your browser and navigate to the Go Playground. Onscreen, you’ll see Go playground can be found at play.golang.org. First, you’ll highlight line 8. Then, you'll delete what's already there and assign a couple of variables as seen onscreen. FREE ACCESS
-
7m 55sIn this video, you’ll watch a demo. In this demo, you’ll work with scoping rules in Go. The scope of a variable is the part of a program where the variable exists and is accessible. In Go, all identifiers, including variables, have static scoping, which means the scope of a variable can be determined at compile time. A variable is accessible from within the block of code where it's defined. FREE ACCESS
-
8m 5sIn this video, you’ll watch a demo. In this demo, you'll learn how to create and use arrays. To get started, you’ll open your browser and navigate to the Go Playground at play.golang.org. Onscreen, you’ll see a second tab open. You’ll see this is open to golang.org/pkg/builtin. This is the page for Go's built-ins. You’ll use the builtins as you wish in your code. FREE ACCESS
-
14m 27sIn this video, you’ll watch a demo. In this demo, you'll learn to create and use slices in Go. Slices are similar to arrays, but provide more flexible ways to represent sequences of data. Slices are dynamic-length sequences with the same data type. Slice types are defined by the elements they contain, not the number of elements, as in arrays. One of the most important things about a slice is that it's passed by reference. FREE ACCESS
-
12m 47sIn this video, you’ll watch a demo. In this demo, we'll work with map data types. First, you’ll navigate to Go Playground at play.golang.org in your web browser. You’ll then open to the "Hello, playground" sample code. Now, you’ll learn to create and use maps. A map data type in Go is similar to a hash table or dictionary in other languages. It provides a data structure that's versatile and flexible. FREE ACCESS
-
8m 3sIn this video, you’ll watch a demo. In this demo, you'll work with Pointers in Go. You’ll learn a pointer stores the memory address of a value rather than the value itself. Although there are several factors that affect performance, the volume of data being passed between functions is one significant factor. The address of operator is the ampersand. It’s used to create a pointer while the asterisk reveals a pointer's underlying value. FREE ACCESS
-
9mIn this video, you’ll learn how program flow control is achieved in Go. Control flow statements are used in Go to develop program logic. You’ll see you can evaluate a specific condition or specific expression and direct the program to flow in a particular direction based on how the condition or expression evaluates. Go has one construct for looping, that's the for loop. FREE ACCESS
-
7m 55sIn this video, you’ll watch a demo. In this demo, you'll use control flow statements in Go to develop program logic. The first statement you'll look at is the if statement. Using if statements allow you to specify whether a particular block of code is going to be executed or not based on some condition. To get started, you’ll open your browser and navigate to Go Playground. FREE ACCESS
-
9m 13sIn this video, you’ll watch a demo. In this demo, you’ll work with loops and branches in Go. To start, you’ll open your browser and navigate to Go Playground. In Go, there’s only one looping construct and that's the for loop. The for loop is very versatile. It supports a composite syntax. Now in the Hello Playground code, you’ll highlight line 8. Then, you’ll press Enter a few times to open up some space. FREE ACCESS
-
5m 39sIn this video, you’ll watch a demo. In this demo, you’ll learn to loop over collections in Go. To get started, you’ll open your browser and navigate to Go Playground. Since you don’t need line 8, you’ll replace it. You’ll replace the entire func main. You need to highlight lines 7 through 9, and press Ctrl+V to paste in your demo code. Then, you’ll select Format to clean things up. FREE ACCESS
-
6m 10sIn this video, you’ll watch a demo. In this demo, you’ll work with string functions in Go. To start, you’ll open your browser and navigate to Go Playground. Onscreen, you’ll see a second tab which is open to the Package strings page, at golang.org/pkg/strings. Scrolling down, you’ll see there are different functions that you can access. Now, you’ll click the Go Playground tab to go back to Go Playground. FREE ACCESS
-
1m 10sIn this video, you’ll summarize what you’ve learned in the course. You’ve learned about program structure and syntax, the various data types supported, and how program flow control is achieved in Go. You explored Go program structure, syntax, and supported data types by declaring and initializing variables and constants in Go and by using operators in Go. You also learned how scoping rules apply and learned how to create and use arrays and slices. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.