Hands-On Go Programming
This course has been retired. Check out the alternatives below
-
What do you get with a Packt Subscription?
- Instant access to this title and 7,500+ eBooks & Videos
- Constantly updated with 100+ new titles each month
- Breadth and depth in over 1,000+ technologies
-
Getting Started with Go
- Getting Started with Go
- Installing Go binaries
- A quick look at the Go language
- Summary
-
Manipulating String Values
- Manipulating String Values
- Trimming spaces from the beginning and end of a string
- Extracting sub-strings from a string value
- Replacing parts of a string
- Escaping characters in a string
- Capitalizing string values
- Summary
-
Type Conversions
- Type Conversions
- Converting a Boolean into a String
- Converting integer and float values into a string
- Parsing string values to Boolean values
- Parsing string values to integer and float types
- Converting a byte array into a string
- Summary
-
Date and Time
- Date and Time
- Finding today's date and time
- Adding and subtracting from a date
- Finding the difference between two dates
- Parsing dates and times from strings
- Summary
-
Maps and Arrays
- Maps and Arrays
- Extracting unique elements from an array
- Finding an element from an array
- Reverting an array
- Iterating over an array
- Converting a map into an array of keys and values
- Merging arrays
- Merging maps
- Testing for the presence of a key in a map
- Summary
-
Errors and Logging
- Errors and Logging
- Creating custom error types
- The try...catch equivalent in Go
- Doing simple logging in your application
- Gracefully dealing with panics
- Summary
-
Files and Directories
- Files and Directories
- Checking the existence of a file
- Reading the entire contents of a text file
- Writing to a file
- Creating temporary files
- Counting lines in a file
- Reading a particular line in a file
- Comparing the contents of two files
- Deleting a file
- Copying or moving a file
- Renaming files
- Deleting a directory and its contents
- Listing all the files under a directory
- Summary
-
Concurrency
- Concurrency
- Running multiple functions concurrently
- Passing data between concurrently running functions
- Waiting for all concurrent functions to finish
- Selecting the results of concurrent functions
- Summary
-
System Programming
- System Programming
- Catching signals
- Running child processes
- Processing command-line arguments
- Summary
-
Web Programming
- Web Programming
- Downloading a web page from the internet
- Downloading files from the internet
- Creating a simple web server
- Creating a simple file server
- Summary
-
Relational Databases
- Relational Databases
- Reading data from databases
- Inserting data into databases
- Updating data in databases
- Deleting data from databases
- Summary