https://abload.de/img/1bfp2718xq1gl8dhr.png


pdf | 3.64 MB | English | Isbn:‎ 978-1484288597 | Author: Rumeel Hussain | Year: 2022

Description:

Chapter 1: Introduction to GoChapter Goal: Provides an overview of the Go programming language in terms of its basic features.No of pages: Sub -Topics: ● Is GoLang Static-Typed or Compiled?● Is Go Object-Oriented?● Features that make Go lang the premium choice for programming● Features excluded from Go lang● Go programs
Chapter 2: Go BasicsChapter Goal: This chapter is intended to cover the programming fundamentals of the Go programming language. Covering basic syntax, program structure, data types, data structures, statements, functions, I/O from files, concurrency, and error handling.No of pages: Sub - Topics ○ Overview■ Ancestors of Go ○ Go Syntax○ Installing Go○ Go playground ○ Using IDE for developing Go applications○ Getting started with programming Go applications■ Hello world!■ Different parts of Go programs■ Executing Go program■ Keywords○ Variables■ Variable data types■ Naming conventions■ Declaring variables■ Taking user input● Using scanf● Using scanln● Using bufio■ Math operators and packages● The math package● Dates and times● Operator precedence in Go○ Memory management & reference values■ New vs make● Incorrect memory allocation example● Correct memory allocation example■ Memory deallocation○ Pointers Data Type■ What is a pointer■ Declaring pointers■ Comparison with Java and C-style languages○ Ordered values in arrays and slices■ Arrays in Go● Declaring arrays ● Initialising arrays● Accessing array elements● Querying the size of array● Multi-dimensional arrays [not included yet]■ Slices in Go● Defining a slice● The len() and cap() functions● Nil slice● Sub-slicing● append() and copy() functions● Sorting slices○ Maps■ Defining maps■ Adding entries in a map object■ Deleting entries from a map object■ Iterating over stored values in a map object■ ○ Structs Data Type■ Defining a struct■ Accessing structure members■ Structures as function arguments■ Pointers to structures○ Program flow■ If statement■ Switch statement■ For statement■ Goto statement○ Functions■ Defining a function■ Calling a function ■ Returning multiple values from Function■ Function arguments■ Methods○ Read/Write text files■ Write text files■ Read text files○ HTTP Package○ JSON○ Go Recipes: Basics programming fundamentals■ Overview■ Numbers and slice in Go■ Working with maps in Go■ Go error handling■ Defer and panic recovery○ Hands-On challenge
Chapter 3: Working with TextChapter Goal: In this chapter, we will discuss how to work with text in Go language. Specifically, we will cover the string formatting, Unicode data handling, and how to use regular expressions in Go language.No of pages: Sub -Topics● Go String formatting and working with unicode● Case insensitive comparisons in Go