
Explore Golang basics from data types and variables to operators, control flow, arrays, slices, maps, plus functions, pointers, structs, methods, and interfaces through animated lessons and hands-on labs.
Explore Golang's origin and goals, install the go compiler, set up a workspace, and run a hello world program to verify the Go environment.
Build a hello world program in Go with package main and import fmt. Learn the main function as the entry point, and how fmt println prints a string.
Access hands-on labs in your browser via Code Cloud, creating a separate account from Udemy. Find labs labeled 'Terme labs', maximize the curriculum, and mark each lab complete.
Explore what data types are in Golang, including string, integers, floats, boolean, arrays, slices, and maps, and see how memory allocation varies by type and enables specific operations.
Explore how Go blends static typing with a dynamic feel, letting data types be explicitly declared or implicitly inferred by the compiler, while contrasting static and dynamic typed languages.
Explore Golang data types, including int, uint8, uint16, floats, strings, and booleans, with notes on signed vs unsigned and memory implications.
Declare string, int, bool, and float64 variables in Go, a statically typed language, with the var keyword, assign values, and print Hello world using println in main.
In this Golang for beginners lecture, learn how to print strings and variables using fmt.Print, fmt.Println, and printf, including newline handling and common format specifiers like %v and %d.
Learn to declare and initialize variables in Golang using standard, shorthand, and short variable declaration with var, :=, and type rules to avoid type errors.
Explore variable scope in Go by examining blocks, inner and outer scopes, and local versus global variables, with examples of accessing and printing values.
Go assigns zero values to uninitialized variables: false for bool, 0 for int, 0.00 for float, and an empty string for strings, with nil for pointers and functions.
Learn how to read user input in Go using the fmt package's scanner and Scanf, handling format specifiers, pointers, and multiple inputs, and interpreting the return count and error.
Explore how to determine variable data types in Go using the fmt %T specifier and reflect.TypeOf, with examples for int, string, bool, and float.
Learn to convert between data types in Go, including int to float and float to int, and use the string conversion package with Itoa and Atoi.
Learn to declare constants in Go with the const keyword, distinguishing untyped and typed constants and their optional type. Apply pi as a float64 constant to compute an area.
Explore operators in Golang, from arithmetic and comparison to bitwise and logical operators, with definitions, examples like a + b, and how they manipulate operands.
Learn how Golang compares values using equal, not equal, less than, less than or equal to, greater than, and greater than or equal operators, with string and integer examples.
Learn how arithmetic operators in Go perform addition, subtraction, multiplication, division, modulus, and unary increment and decrement, with examples on numbers and string concatenation.
Explore how Golang logical operators control program flow with and, or, and not. Learn how boolean expressions evaluate to true or false through practical examples and print statements.
Learn Golang assignment operators, including assign, add and assign, subtract and assign, multiply and assign, divide and assign, and modulus, with x and y examples showing updates and results.
Explore bitwise operators in Golang, including and (&), or (|), xor (^), left shift, and right shift, with hands-on examples like 12 and 25 to compute bit-level results.
discover how Go uses if-else and else-if to control program flow with practical examples like voting eligibility and string checks.
Learn how Go's switch statement routes control flow using the value of an expression, with cases, a default, and the fallthrough keyword, plus conditional cases and Go's implicit break.
Learn how the for loop in Golang uses initialization, condition, and post statements to control flow, print Hello World and squares, and handle break, continue, and infinite loops.
Explore arrays in Go: fixed-length, homogeneous collections with contiguous memory, learn to declare, initialize, index safely, and iterate using for loops and range, including multi-dimensional arrays.
Master Go slices as flexible references to an underlying array, learning length, capacity, and start-inclusive end-exclusive slicing. Use append, copy, delete, and range to manipulate data efficiently.
Learn how Go maps provide an unordered collection of key-value pairs, declare and initialize maps, access and update values, handle nil maps, and iterate, delete, and truncate them.
Explore functions in Golang, including declaring and calling, alongside higher order, variadic, and anonymous functions. Learn how functions enable reusability by taking inputs and returning outputs.
Learn how to define and call functions in Golang with the func keyword. Understand function signatures, input parameters, return values, and how addNumbers demonstrates returning a value.
Learn how Go handles return types, including multiple and named returns, and use variadic functions with an ellipsis, plus blank identifiers to ignore values.
Explore recursion by building a factorial function that calls itself until a base case, and observe how 5! equals 120 in the main function.
Learn about anonymous functions in Go, defined without names to accept inputs and return outputs, used for short term tasks and can be assigned to a variable or invoked directly.
Learn high order functions in Golang by composing modular circle calculations. Map queries to area, perimeter, and diameter using radius input.
Explore how the defer statement postpones a function call until the surrounding function returns, with arguments evaluated immediately and the call executing after return, demonstrated by printName, printRollNo, and printAddress.
Discover how pointers hold memory addresses in ram and help locate and modify values at those locations. Understand variable memory allocation and why addresses can differ between program runs.
Master pointers in Golang by learning the address-of and dereference operators, and see how to obtain an address and access its value.
Discover how to declare and initialize pointers in go using var with an asterisk, the address-of operator, and shorthand syntax for int and string pointers, while understanding nil values.
Learn to dereference a pointer in Go, access the value at its address, and modify it through the dereference operator, as shown with x and s examples.
Explore passing by value in Go, where arguments are copied so changes affect only the copy, not the original variable, with a string example.
Explore how Go passes by reference with pointers, enabling functions to modify the original value by dereferencing addresses; slices and maps also reflect changes by default.
Explore structs as a user-defined data type that groups related information under one variable name, and see how methods and interfaces relate to Golang usage with a student example.
Declare and initialize a struct in Go, exploring type and struct declarations, fields, and multiple initialization methods such as var, new, and short variable assignment.
Learn to access struct fields in Golang using the dot operator on a circle with X, Y, and radius; set them to five and note the error for c.area.
Explore passing structs to functions in golang, comparing value and reference semantics with a circle example and the address-of operator to show area updates.
Learn to compare structs in Go with the equality operator to verify same type and identical field values, using s1 and s2 and noting the compile-time error for mismatched types.
Learn how methods extend functions in Go by using receivers, including pointer and value receivers, with circle struct examples showing area calculation via calcArea.
Explore method sets by defining a student struct with name and grades and implementing displayName and calculatePercentage, then call these in main to print the name and compute the percentage.
Learn how Golang interfaces define a method set as blueprints for types, implemented implicitly by structures, with syntax using type, interface, and method signatures like getRateOfInterest and calcReturn.
Explore implementing interfaces in Golang by defining a shape interface with area and perimeter and implementing these methods for square and rectangle, then using printData to demonstrate beauty of interfaces.
Wrap up by mastering data types and variables, exploring operators, control flow, and arrays, slices, and maps, and learning functions, pointers, structs, and interfaces for a solid Go programming foundation.
It’s important to learn new skills, but it’s even more important to learn the right skills.
Why Golang? Well, Golang has been the most popular language to learn over the past 3 years, and is easily one of the top trending programming languages of the past decade.
But the reason why it’s popular is because it’s the true programmer’s language. It was built with the idea to make work a lot easier for programmers all over the world. And it does exactly that.
Go or Golang is a programming language developed and maintained by Google. It is a free and open-source language. It’s easy to learn, it’s scalable and it has fast execution.
This course requires zero experience in programming or coding. All it takes is some discipline and following our easy-to-understand curriculum.
This course won’t just throw content at you. We’ve made sure that what you learn will actually stick. After each module, you’ll get access to practice questions to truly understand the concepts we teach you.
You’ll also get access to our hands-on labs. Our labs can be accessed right in your browser without having to set up any lab environment yourself. We validate your work and give you feedback instantly.
Our hands-on labs will give you the experience you need to excel in your DevOps career.
In this course, you will learn:
Data types
Variables
Arrays
Slices
Maps
Operators
Control flow
Functions
and other Go concepts.