Welcome to the Go (Golang) source code examples page. On this page, you will find 200+ source code examples, and tutorials with output, and explanation.
Go is an open-source programming language designed for building simple, fast, and reliable software.
Go Getting Started
Go Functions
- Go function simple example
- Go function multiple return values
- Go anonymous function
- Go variadic function
- Go recursive function
- Go defer function call
- Go pass parameters by value
- Go function as a parameter
- Go custom function types
- Go filter slice example
- Go closure function example
- Go higher-order function
Go Concepts by Example
Go - Operators
Go - Read Input
Go - Control Statements
Go - Arrays
- Go - Array Example
- Go - Array Iteration Example
- Go - Multidimensional Array Example
- How to Iterate Over Arrays in Go Using Range
- How to Pass Arrays to Functions in Go
- How to Copy and Clone Arrays in Go
- How to Convert Array to Slice in Golang
- How to Sort Array in Golang
- How to Implement Custom Sort on Arrays in Go
Go - Files / Directories
- How to Open and Close Files in Go
- How to Read from a File in Go
- How to Write to a File in Go
- How to Check if a File Exists in Go
- How to Delete a File in Go
- How to Copy a File in Go
- How to Move or Rename a File in Go
- How to Change File Permissions in Go
- How to Create a Directory in Go
- How to List Files in a Directory in Go
- How to Recursively Traverse Directories in Go
- Go - read file into string
- Go - read file line by line
- Go - write to file with File.WriteString
- Go - write to file with ioutil.WriteFile
- How to read and write a file in GoLang
- Go - create directory example
- How to check if a directory exists in Golang
- Go - create, rename and delete directory examples
Go - Slices
- Go - Create Slice Example
- Go - Slice Length and Capacity Example
- Go - Slice Iteration Example
- Go - Slice Append Example
- Go - Slice Copy Example
- Go - Slice Remove Element Example
- Go - Slice Sorting Example
- How to Delete Elements from a Slice in Go
- How to Sort Slice in Golang
- Go - Multidimensional Slices Example
- How to Convert an Array to a Slice in Go
- How to Reverse a Slice in Go
- How to Concatenate Multiple Slices in Go
- How to Check if Slice Is Empty Golang
- Go - Custom Slice Types Example
Go - Maps
- How to Declare and Initialize a Map in Go
- How to Add or Update Elements in a Map in Go
- How to Retrieve Values from a Map in Go
- How to Check if Key Exists in Map Golang
- How to Iterate Over a Map in Go
- How to Sort a Map by Key in Go
- How to Sort a Map by Value in Go
- How to Pass a Map to a Function in Go
- How to Copy a Map in Go
- How to Create Nested Maps in Go
- How to Compare Maps in Go
- How to Convert a Map into a Slice in Go
- Go - Map Example
- Go - Map loop example
- Go - Map check if value exists
- Go - Map remove element example
Go Structs
Go MySQL Database
- Golang - MySQL Delete Example
- Golang - MySQL Update Example
- Golang - MySQL Select Example
- Golang - MySQL Insert Example
Go JSON
Go Algorithms Examples
- Golang Interpolation Search Algorithm
- Golang Recursion Algorithm
- Golang Binary Search Algorithm
- Golang Linear Search Algorithm
- Golang Quick Sort Algorithm
- Golang Merge Sort Algorithm
- Golang Shell Sort Algorithm
- Golang Insertion Sort Algorithm
- Golang Selection Sort Algorithm
- Golang AVL Tree with Example
- Golang Binary Search Tree with Example
Learn Design Patterns in Golang
- Design Patterns in Go (Golang) // Learn 24 design patterns
Data Structures and Algorithms in Golang
- Data Structures and Algorithms in Go // Popular
Comments
Post a Comment