
Discover go language's goal of simple, efficient code with fast compilation and hardware efficiency, and explore basics to advanced topics, including variables, concurrency, networking, file handling, and packages.
Introduction to Golang
Learn how integrated development environments simplify Go programming, set up Visual Studio Code with the Go extension, and compare it with GoLand for easier debugging and coding.
Create a Go project with a proper folder structure, define a main package, and implement func main that prints hello world to the console.
Learn how to create a portable Go executable by building with go build, which bundles dependencies into a single file you can run on another machine without installing Go.
Explore variables by type, including integers (32- or 64-bit, signed or unsigned) and floating-point, with architecture-dependent sizes, plus strings in double quotes, utf-encoded Unicode, booleans, and complex numbers.
Demonstrates shorthand variable declarations in Go, using type inference, declaring multiple variables per line, and highlights compiler errors when variables are declared but unused.
Explore how to define complex variables in Go, use shorthand notation like 1+2i or complex() to create complex numbers, and work with their real and imaginary parts.
Discover arithmetic operations on complex numbers in Golang, including adding and multiplying complex numbers, and printing the results with new variables.
Learn how Go handles type conversions between int32 and int64, resolve mismatched types by casting, and perform safe arithmetic in Go.
Explore how global variables are accessible across functions in Go and how local variables defined in main are not accessible elsewhere. Understand scope and accessing undefined identifiers in printing.
In this lecture we focus on integer operations, placeholders, printing with printf, newline management, and how integer division truncates, contrasted with using float types for precise results.
Explore Go packages by explaining executable versus non-executable types, how to build and import library packages, and why the main function serves as the entry point for applications.
Note: There was a problem with the initial upload for this video so I re-uploaded it and the video is now divided into two parts
Build a geometry package in Go, define return types and the area function, then call it from a main executable to compute a rectangle's area.
Identify how to export variables in Go by naming them with a capital first letter and accessing them from other packages via import and a main function.
Explore conditionals and control flow in Golang, learning how if statements, for loops, and switch cases decide execution paths with default cases.
Explore if conditionals in Golang by comparing two numbers, using else and nested if blocks, and printing results to demonstrate true and false branches.
Learn how to initialize a variable, use an if condition, and check even numbers with modulo in Go, using 9 and 10 as examples and printing results.
Switch over an int option with cases 1 and 3 to trigger actions like go running, go jogging, or push ups, using a default and initialization for unmatched values.
Explore loops in go, including for loops, while-like patterns, and infinite loops, with loop anatomy—initialization, condition, and post—plus break and continue control, and iterating over strings and arrays with range.
See how a for loop prints values from zero to ten with a less-than-or-equal-to condition, and how break stops the loop when i reaches seven, printing 'loop is broken'.
Go implements the while loop as a for with initialization, condition, and post steps, and demonstrates accumulating a sum with sum += sum until it reaches 128.
Learn how to create an infinite loop by omitting initialization, condition, and post statements, and observe it run until interrupt. Use cases include waiting for user input or server connections.
Learn how to declare and manipulate arrays in Go, including fixed-size arrays, zero-valued elements, accessing by 0-based index, updating elements, and printing results.
Access elements by index in a fixed-size Golang array, print specific elements, handle out-of-bounds errors, and replace values to see how assignments update the array.
Master the shorthand array declaration in Go by listing values in braces and indexing from zero. Use ... to let the compiler count elements automatically.
Explore how in Go, the size of an array is part of its type, so arrays with different lengths have different types and cannot be added together.
Learn what value types are and why copying a variable and modifying the copy leaves the original unchanged, illustrated with an array example.
Learn how to pass an array to a function in Go, define inputs and outputs, and return a modified array while honoring the array size.
Learn to iterate over two-dimensional arrays in Go with nested loops, printing outer indices and inner content to traverse each entry.
Explore how slices in Go represent a subset of an array, with start inclusive and end exclusive, acting as references that modify the original array.
Learn how to write a function in Go, define input parameters, return a value, and compute and print the average of two numbers.
Learn how exportable and non-exportable packages work by importing a geometric package and using exportable functions like EDI, with capitalized names signaling exportability and demonstrating that non-exportables are not accessible.
Understand how to return two values from a function, assign them to sum and difference variables, and optionally ignore unused values.
Discover how to create anonymous functions, assign them to variables, and invoke them with input such as a user name to produce inline, named-like behavior.
In this course we start learning Golang from Scratch. Go is an open source programming language created by Google. As one of the fastest growing languages in terms of popularity, its a great time to pick up the basics of Go!
We start with how to install golang on your system and then we proceed to developing our first golang hello world program. Then we start diving into golang structure and syntax. Once we become familiarized with initial go structure, we will start working with more advanced topics like concurrant programming and working with packages. During our course, we will explore a lot of aspects of golang in detail and use important packages for everyday tasks.
Golang is very easy to pick up and its syntax is fairly simple as compared to other programming language. However golang requires a lot of effort and practice to master its concepts (for example concurrancy) which could be very tricky for programmers to understand at first. This course aims to make golang learning easy and simpler by working with simple yet useful examples to make the concepts clear.