This repository provides examples and exercises with the Go programming language.
- Declaring variables
- Value types
- Outputting values
- Constant values
- User input
- Formatting strings
- Returning values
- Loops
- Working with files
- Handling errors
- Demonstrates the use of packages and modules in Go
- Creating a pointer
- Pointer's null value
- What are structs
- Creating a struct
- Handling embedded structs
- Struct tags
- Creating and implementing an interface
- Creating a generic method
- Getting a type of an any type
- Array's slices
- The
make()
function - Maps
- Type aliases for longer maps
- Function as values
- Anonymous function
- Variadic function
- Splitting slices into parameters values
- How to defer code execution (the
defer
keyword) - Goroutines and Channels
- Handling channels
- How to serialize a JSON (Go struct to JSON string)
- How to deserialize a JSON (JSON string into Go struct)
- Get current time
- Get current time as UTC
- Format current time UTC to string UTC format
- Adding hours, minutes, and seconds
- Converting date string into date
- A RESTful API built with the Gin framework, demonstrating CRUD operations, user authentication, and database interactions using SQLite.
- This repo was made following the course: Go - The Complete Guide