
Golang is a statically typed programming language designed at Google for high performance software, web applications, and cloud and network services, inspired by C, Pascal, and Oberon.
Create a basic hello world project in go by initializing a go module, defining package main and func main, and printing hello world to the terminal.
Explore Golang's boolean type and variable declarations using var statements, with true and false values and the default false behavior demonstrated via fmt.Println in sample code.
Explore integer types in Go, including int, int64, and int32, and see how bit size defines minimum and maximum values, with an example using int set to ten and printed.
Explore Go float types, compare 32-bit and 64-bit options, and note the recommendation to use 64-bit. Floats allow decimals, unlike integers; the example shows 10.5, while integers stay whole.
Store text in variables with the string type, then show that numbers written as text cannot participate in mathematical operations. Use fmt.Println to print the text to the terminal.
Explore assigning and printing multiple values in Go, including single-line outputs, omitting types, and grouping variables with parentheses across int, float, and string types.
Declares and uses constants to create immutable values in Go, prints the constant with fmt.Println, and demonstrates that reassignment is not allowed.
Explore arrays in Go, a fixed-size, contiguous memory collection of the same type that initializes to zero values. Learn indexing from zero, bounds safety, and how slices offer dynamic sizing.
Explore slices in Go as a dynamically sized sequence of elements of the same type, built on arrays, that can grow or shrink at runtime, using append to add items.
Create and export a Go function that returns a string, use a return statement, and call a sum function that adds two integers, then print results with fmt.
Explore golang loops, focusing on the for loop to iterate data or repeat code, with a practical example that prints 0-4 and, after adjustment, 0-5.
Discover how to emulate a while loop in Golang using a for loop, counting from zero to ten with an incrementing i and simple prints.
Use the range loop in Go to iterate over an array, printing index and value, and observe that indexes start at zero while values start at one in this example.
Go uses if, else if, and switch to control flow based on conditions. See an example where two variables share the same value and an if condition prints when true.
Explore the as if condition in Go, building cases where the first condition is false, comparing variables I and V, and printing results with fmt.Println after go run Main.go.
Explain the else condition in Golang by comparing values with if statements, using not equals, and printing outcomes to show which conditions are true or false.
Explore switch-case logic in Go by evaluating the first element of an array (10, 20, 30) with multiple cases and a default, printing results.
Learn to build a rock, paper, scissors game in Go, using a slice of choices, a time-based random seed, user input, for looping, scoring, and play again.
Dear Students,
Welcome to the Golang course on Udemy! I am thrilled to be your instructor and guide you through the exciting world of Golang. In this course, you will learn how to program using Golang, an open-source programming language developed by Google.
Golang, also known as Go, is a modern programming language designed to make it easy to write efficient, reliable, and scalable software. It has gained popularity in recent years due to its simplicity, speed, and concurrency support. It is used by companies like Google, Uber, Netflix, and Dropbox to build large-scale systems.
In this course, you will start by creating your first Golang program, a "Hello World" project. You will then learn about variable types in Golang, including integers, floats, strings, and Booleans. You will learn how to declare variables and constants, and how to use them in your programs.
Next, you will learn how to create functions in Golang. You will learn how to define functions, pass arguments, and return values. You will also learn about loops in Golang, including for loops and while loops, and how to use them to iterate through arrays and other data structures.
In addition to loops, you will also learn about logical statements in Golang, including if statements, switch statements, and conditional expressions. These statements allow you to make decisions in your programs based on the values of variables and other conditions.
Finally, you will apply your knowledge of Golang to a sample project, where you will build a program that uses functions, loops, and logical statements to solve a problem.
I am excited to guide you through this course and help you learn Golang. By the end of this course, you will have a strong foundation in Golang programming and be ready to take on more advanced Golang projects.
Let's get started!