In this chapter, we have learned how to find the current date and time, how to add to and subtract from dates, how to find the difference between two dates, and how to parse dates and times from strings. In the next chapter, you will learn how to work with maps and arrays in the Go language. You will see practical examples for manipulating and iterating arrays, merging arrays and maps, and testing whether a key is present in a map.
Hands-On Go Programming
By :
Hands-On Go Programming
By:
Overview of this book
<p>With its C-like speed, simplicity, and power for a growing number of system-level programming domains, Go has become increasingly popular among programmers. Hands-On Go Programming teaches you the Go programming by solving commonly faced problems with the help of recipes. You will start by installing Go binaries and get familiar with the tools used for developing an application. Once you have understood these tasks, you will be able to manipulate strings and use them in built-in function constructs to create a complex value from two floating-point values. You will discover how to perform an arithmetic operation date and time, along with parsing them from string values. In addition to this, you will cover concurrency in Go, performing various web programming tasks, implementing system programming, reading and writing files, and honing many fundamental Go programming skills such as proper error handling and logging, among others. Whether you are an expert programmer or newbie, this book helps you understand how various answers are programmed in the Go language.</p>
Table of Contents (18 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributor
Preface
Free Chapter
Getting Started with Go
Manipulating String Values
Type Conversions
Date and Time
Maps and Arrays
Errors and Logging
Files and Directories
Concurrency
System Programming
Web Programming
Relational Databases
Other Books You May Enjoy
Index
Customer Reviews