Getting Started with Go: Basic Programming

Go    |    Beginner
  • 17 videos | 2h 12m 1s
  • Includes Assessment
  • Earns a Badge
Rating 4.7 of 55 users Rating 4.7 of 55 users (55)
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 course
    Recognize go program structure and syntax
    List and describe the various data types supported in go
    Declare and initialize variables in go
    Declare and initialize constants in go
    Recognize and use operators in go
    Recognize how scoping rules apply in go
    Create and work with arrays in go
    Create and work with slices in go
  • Create and work with the map data type in go
    Create and work with pointers in go
    Recognize how control flow statements are used in go to develop program logic
    Use if, if/else, and switch control flow statements in go to develop program logic
    Create and use for loops and branches to control program flow in go
    Loop over collection data types in go
    Work with various string manipulation functions in go
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 10s
    In 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 35s
    In 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
  • Locked
    3.  Supported Data Types in Go
    6m 45s
    In 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
  • Locked
    4.  Declaring and Initializing Variables in Go
    6m 13s
    In 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
  • Locked
    5.  Declaring and Initializing Constants in Go
    7m 56s
    In 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
  • Locked
    6.  Using Operators in Go
    9m 58s
    In 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
  • Locked
    7.  Working with Scoping Rules in Go
    7m 55s
    In 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
  • Locked
    8.  Creating and Using Arrays in Go
    8m 5s
    In 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
  • Locked
    9.  Creating and Using Slices in Go
    14m 27s
    In 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
  • Locked
    10.  Working with the Map Data Type in Go
    12m 47s
    In 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
  • Locked
    11.  Defining and Using Pointers in Go
    8m 3s
    In 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
  • Locked
    12.  Program Flow Control in Go
    9m
    In 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
  • Locked
    13.  Controlling Program Flow in Go
    7m 55s
    In 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
  • Locked
    14.  Working with Loops and Branches in Go
    9m 13s
    In 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
  • Locked
    15.  Looping over Collections in Go
    5m 39s
    In 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
  • Locked
    16.  Working with String Functions in Go
    6m 10s
    In 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
  • Locked
    17.  Course Summary
    1m 10s
    In 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.

YOU MIGHT ALSO LIKE

Rating 4.7 of 114 users Rating 4.7 of 114 users (114)
Rating 4.7 of 19 users Rating 4.7 of 19 users (19)
Rating 4.6 of 60 users Rating 4.6 of 60 users (60)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 4247 users Rating 4.6 of 4247 users (4247)
Rating 4.6 of 2165 users Rating 4.6 of 2165 users (2165)
Rating 4.5 of 73 users Rating 4.5 of 73 users (73)