Free Golang Guides
  • Learn more about Go
RSS feed
  • 01. Introduction
    • Getting Started with Go
    • Hello World and Basic Syntax in Go Programming
    • Setting Up the Go Development Environment
  • 02. Basics
    • Control Structures (if/else) in Go Programming
    • Functions in Go Programming
    • Understanding Constants in Go Programming
    • Understanding Packages and Imports in Go Programming
    • Variables and Data Types in Go
  • 03. Data Structures
    • Arrays and Slices in Go Programming
    • Maps in Go Programming
    • Structs in Go Programming
  • 04. Pointers and Memory
    • Memory Management in Go
    • Understanding Garbage Collection in Go Programming
    • Understanding Pointers
  • 05. Functions Advanced
    • Mastering Defer in Go
    • Anonymous Functions and Closures in Go Programming
    • Mastering Variadic Functions in Go Programming
  • 06. Object-Oriented Programming
    • Mastering Embedding and Composition in Go Programming
    • Methods in Go Programming
    • Understanding Interfaces in Go Programming
  • 07. Concurrency
    • Protecting Shared Resources in Concurrent Go Programs
    • Select Statement in Go Programming
    • Understanding Channels in Go
    • Understanding Goroutines in Go Programming
  • 08. Error Handling
    • Custom Errors in Go Programming
    • Error Handling in Go
    • Go Error Handling - Error Interface
  • 09. Testing
    • Benchmarking in Go Programming
    • Table-Driven Tests in Go Programming
    • Unit Testing in Go Programming
  • 10. Standard Library
    • HTTP Client and Server in Go Programming
    • JSON Encoding/Decoding in Go
    • Mastering Time and Date Operations in Go
    • Working with Files (io/ioutil)
  • 11. Advanced Topics
    • Cgo
    • Mastering the Power of Go's Unsafe Package
    • Reflection in Go Programming
  • 12. Web Development
    • Middleware in Go
    • RESTful API Design with Go
    • Understanding Authentication and Authorization in Web Development
  • 13. Database Interaction
    • NoSQL Databases (MongoDB) in Go Programming
    • SQL Databases with database/sql in Go
    • Using ORM with Go
  • 14. Performance Optimization
    • CPU Optimization Techniques for Go Programming
    • Memory Optimization Techniques in Go Programming
    • Profiling Go Programs
  • 15. Tools and Ecosystem
    • Go Doc and Godoc
    • Go Generate
    • Go Modules and Dependency Management
  • 16. Design Patterns
    • Behavioral Patterns in Go
    • Creational Patterns in Go
    • Structural Patterns in Go
  • 17. Advanced Concurrency
    • Concurrency Patterns in Go Programming
    • Mastering Concurrency in Go with Context
    • Mastering Synchronization in Go for Advanced Concurrency
  • 18. Microservices
    • Building Scalable and Maintainable Systems with Microservices
    • Containerization with Docker in Go Programming
    • Service Discovery and Load Balancing in Go
  • 19. Tutorials
    • Creating APIs with Go
    • Delve into Go
    • Fetching a File from GitHub using Go
    • Generating a Dockerfile using Go
    • Getting Started with Go Development in Visual Studio Code
    • Hash Function Demos
    • How to Keep a Variable Without Using It in Go Programming
    • How to Login to a Site using Go
    • How to Read a File using `io.Read` Function in Go
    • How to Start and Call Go Microservice using RPC Client
    • How to Use `io.Read` in Go Programming
    • How to Use `io.Reader` in Go Programming
    • How to use a list in a struct
    • How to Use Generics in Go
    • How to Use Go Context
    • How to Use Go for Backend Development
    • How to Use Go Get in Golang Programming
    • How to Use Go in Windows
    • How to Use Go Lint
    • How to Use Go Programming
    • How to Use Go Projects in Golang Programming
    • How to Use GoLang yacc
    • How to Use GoLang-Migrate in Your Go Programming Projects
    • How to use HTML in Golang
    • How to Use HTTP/2 in Go Programming
    • How to Use Interfaces in Go
    • How to Use Internal with GitHub Project Go
    • How to Use JSON Encoder in Golang
    • How to Use Lists in Go
    • How to Use Pprof in Go Programming
    • How to Use Regex in Go
    • How to Use REST API in Go Programming
    • How to Use SQLite with Go
    • How to Use Templates in Go Programming
    • How to Use Visual Studio Code for Go Programming
    • Leveraging Conditional Statements for Efficient Iteration
    • Lists in Go
    • Mastering `rand.Seed` in Go Programming
    • Mastering `scanner.Split` in Go Programming
    • Mastering CRC64 in Go Programming
    • Mastering EasyJSON in Go Programming
    • Mastering Glide
    • Mastering Go Dependencies with Golang Dep
    • Mastering Go SQL
    • Mastering Go's `io.Reader` in 10 Easy Steps
    • Mastering Go's Standard Library Mux with Method
    • Mastering Interfaces in Go
    • Mastering Internal Go
    • Mastering Panic in Go
    • Mastering Redis Integration with Go
    • Mastering Struct Types in Go
    • Mastering the d Keyword in Go
    • Mastering the Internal Go Site Stackoverflow.com
    • Mastering the Ternary Operator in Go Programming
    • Mastering Ticker in Go Programming
    • Mastering Vendor Go in Golang Programming
    • Mastering vgo in Go Programming
    • Mutex in Go
    • Pulling a Repository using Go
    • Purging Messages in RabbitMQ using Golang
    • Reading a File from Android using Go
    • Shutting Down a Computer Using Go Programming
    • Starting and Calling Go Microservices using TCP Dial
    • Updating a File on GitHub using Go
    • Updating a GitHub File using Go
    • Updating a GitHub Repository using Go
    • Using `recover` in Go Programming
    • Using API Gateway with GoLang Apex Functions
    • Using Array as a Key in Map Go
    • Using Brackets in Go Programming
    • Using Channels in Go Programming
    • Using Cobra Golang for Building CLI Applications
    • Using Command Line Arguments in Go Programming
    • Using Context in Go
    • Using Context in Go Programming
    • Using Cron with Golang
    • Using Databases in Go Programming
    • Using Enums in Go
    • Using GDB to Debug Go Programs
    • Using Go in C
    • Using Go in Visual Studio
    • Using Go in Visual Studio Code
    • Using Go on OpenShift
    • Using Go Plugins in Your Golang Programming Projects
    • Using Go's MockGen for Effective Unit Testing
    • Using Go's WaitGroup
    • Using Go, Git, and Heroku to Deploy Your Go Application
    • Using GPS Golang in Your Next Go Program
    • Using Initialized Variables as Struct Names in Go Programming
    • Using Interfaces in Go Programming
    • Using Kafka with Go Programming
    • Using Local Packages in Go Programming
    • Using Log in Go Programming
    • Using Mutex in Go Programming
    • Using MySQL with Go
    • Using Pipes in Go for Inter-Process Communication
    • Using pprof with Go Programming
    • Using Prometheus in Go
    • Using Random Number Generators in Go Programming
    • Using RESTful APIs in Go Programming
    • Using scanf in Go Programming
    • Using Swagger in Go Programming
    • Using Time as a Key in Maps Golang
    • Using Values of Struct in Go Programming
    • Using Variables in Nested Templates with Go
    • Using WaitGroup in Go Programming
    • Using YAML Files for Configuration in Go
    • Using Your Own Package in Go
    • Writing Data to a File in Go
    • Writing Data to Files in Go
    • Section 02


Basics

Section 02

Learn about Basics

Read more

Setting Up the Go Development Environment Control Structures (if/else) in Go Programming