Hands-on with Go

Hands-on with Go
Hands-on with Go
English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 2h 26m | 359 MB

Learn Go programming with concise examples to many common fundamental problems.

Go has moved from the state of tentative to mass adoption. Its C-like speed, simplicity, and power for a growing number of systems level programming domains make it an attractive option for programmers working with older cumbersome, statically typed languages.

This course will help you learn Go programming language by solving commonly faced problems by developers in a Recipe approach. You will start by installing Go binaries and get familiar with tools to develop application. Then you will manipulate with strings and then use them in built in constructions and built-in function constructs to create a complex value from two floating-point values. Then you will learn to perform arithmetic operation date and time along with parsing them from string values.

Whether you are an expert programmer or a fresh starter, you will learn how various answers are programmed in Go language, which will take you to the next level in your mastering at Go. These recipes will be from concurrency in Go, performing various web programming tasks, doing system programming, reading and writing files, and many fundamental Go programming skills such as proper error handling, doing logging, and so on.

In this course, we take a hands-on approach instead of theoretical knowledge about Go programming language. With the help of this course, you quickly learn how Go solves some of the very common problems you will face when you start using Go in your personal or enterprise level projects. You will be watching short, to-do-point, and concise videos that will quickly get you to the speed and help you enjoy working with Go.

Each section is carefully selected so that the course can cater to a broader audience regardless of their background and interest. Each video first tells you about the problem and followed by an actual example that will show you how that problem is solved in Go.

If you are learning Go, you will benefit by apprehending a ton of fundamental teachings that this course has to offer. Since all the examples will be hands-on development, you will see the results quickly.

What You Will Learn

  • Manipulate string values and escape special characters.
  • Convert types among one another
  • Work with Dates and Times
  • Work with Maps and Arrays
  • Handle errors and perform logging
  • Work with files and directories
  • Write concurrent functions and handle synchronization
  • Handle system-level signals and command-line arguments
  • Handle HTTP request and responses
  • Write a simple web server and file server
  • Perform CRUD operations on a relational database
Table of Contents

Getting Started with Go
1 The Course Overview
2 Installing Go Binaries
3 Quick Look at Go Language

Manipulating String Values
4 Trimming Spaces from Beginning and End of Strings
5 Extracting Substrings from String Values
6 Replacing Parts of a String
7 Escaping Characters in Strings
8 Capitalizing String Values

Type Conversions
9 Converting Boolean to String
10 Converting Integer and Float Values to String
11 Parsing String Values to Boolean
12 Parsing String Values to Integer and Float
13 Converting a Byte Array to String

Date and Time
14 Finding Today’s Date and Time
15 Adding or Subtracting from Date
16 Finding the Difference Between Two Dates
17 Parsing Dates and Times from Strings

Maps and Arrays
18 Extracting Unique Elements from a List
19 Finding an Element from an Array
20 Reverting an Array
21 Iterating over an Array
22 Converting a Map into an Array of Keys and Values
23 Merging Arrays
24 Merging Maps
25 Testing for the Presence of a Key in a Map

Errors and Logging
26 Creating Custom Error Types
27 Try_Catch Equivalent in Go
28 Doing a Simple Logging in Your App
29 Gracefully Dealing with Panics

Files and Directories
30 Checking the Existence of a File
31 Reading the Entire Content of a Text File
32 Writing to a File
33 Creating Temporary Files
34 Counting Lines in a File
35 Reading a Particular Line in a File
36 Comparing the Contents of Two Files
37 Deleting a File
38 Copying or Moving a File
39 Renaming Files
40 Deleting a Directory and Its Contents
41 List All the Files under a Directory

Concurrency
42 Running Multiple Functions Concurrently
43 Passing Data Between Concurrently Running Functions
44 Waiting for All Concurrent Functions to Finish
45 Selecting the Results of Concurrent Functions

System Programming#
46 Catching Signals
47 Running Child Processes
48 Processing Command-line Arguments

Web Programming
49 Downloading a Web Page from Internet
50 Downloading Files from Internet
51 Creating a Simple Web Server
52 Creating a Simple File Server

Relational Databases
53 Reading Data from SQL Databases
54 Inserting Data to Database
55 Updating Data in Database
56 Deleting Data from Database