GOLANG FOR YOU AND ME
This book titled “Golang for You and Me” written by me, Rashmi Nanda aims to teach the professionals how to code in Go starting from scratch. It describes the basic syntax of the Go Programming Language, goes through strings, arrays, pointers, structures, interfaces with JSON, then states how to create a RESTful API with Golang along with creation of web server. This teaches us to parse XML files.
Chapter 1: This introduces Golang. It gives an overview about Go programming language. It talks about features and structure of programs of Golang. It states about features intentionally excluded. It tells regarding local environment setups, downloading Go Archive, on Windows installation, and an installation on Mac OS X/ Linux/Free BSD and UNIX.
Chapter 2: It deals with building blocks basically of Go. Data Types declares variables or the functions of lots of types. Variables has been name given to storage area that is manipulated by a program.
Chapter 3: This explains Constants and Operators used in Golang. Constants are the Floating-Point Literal, Integer Literal, String literal, Character Literal, and Escape Sequence. Keyword of const is stated. Different types of Operators are discussed.
Chapter 4: It shows how Decision Making is done with help of if……else statement, switch statement, if statement, nested if statements and select statement. It tells about Infinite Loop and Statement of Loop Control. Golang Functions are discussed in this. Talk about Function Arguments, Defining Function, and Calling Function. Scope Rules are explained here. Tell about initializing Global and Local Variables.
Chapter 5: This does state about Strings, Methods, Pointers, and Arrays. Create Strings and concatenate Strings. Initialize Arrays, declare Arrays, and access Array elements. The Golang Pointers and Nil Pointers are talked about. Tell what Methods are. How they work in the Go language of programming. Look at demystifying difference between Functions and Methods.
Chapter 6: It talks about defining Structure, Pointers to Structures, and Accessing members of Structures. Nil Slice, define Slice, and Subslicing is done. Defer stops the function execution until surrounding function returns. Panic is same as throw exceptions. Recover is built-in Go function. Range is used in for loops to iterate over items of slice, channel, map, or array.
Chapter 7: Map is data type. In Recursion items have been repeated is ways be self-similar. A Type Conversion converts variables from data type one in number to data type that is another in number. Interface is another data type. Error Handling has in-built error interface type.
Chapter 8: It concludes the book and provides a summary of the usage of Golang in real life.
This E-Book titled "Golang for You and Me" is an effort by RASHMI NANDA to educate the professionals and education enthusiasts about the various modules of Golang.