#Tutorial
121 articles
Get to know Container List and Sort in Golang
In addition to arrays
and maps
, Go has several more collections available under the container package. We’ll look at the container/list
package as an example.
Get to know the Standard String Library in Golang
As programmers who are learning Go Lang, we also need to know Go’s default library packages so that we understand better and have an easier time interacting with the core packages. There are lots of built-in libraries from Golang that can make it easier for us when coding. For example, if we need string conversion, the Go library is provided by default.
Get to know the Input Output Library in Golang
Before studying the Golang IO library, there are lots of functions in the IO library but the most important ones are 2 function interfaces, namely Reader
and Writer
. Reader
is usually used to read data from a file or some provided input/output. Meanwhile Writer
is a function that will later write data to a file or input/output provided by our system.
Get to know functions, multiple returns, variadic and closures in Golang
Second Function
Consists of input
, output
.
Until now, we can only use the Go program for play functions like this.
Get to know variables and constants in Golang
Variables
The following is an example of the basic implementation of using variables in the program below
How to Implement Golang's Singleton Design Pattern
Basic Definition
Singleton is a software design standard. This standard guarantees the existence of only one instance of a class, while maintaining a global point of access to its objects.
Creating a Simple Distibuted Search Engine Using Worker Pool on Golang
Introduction
You know Google is a place where we search for several keywords that can produce various millions of information that we can get just by typing a few keywords and in less than 1 second we can already get various information related to the keywords we are looking for. This is an example of a miniature or simple search engine version of how we can implement a worker pool into an engine that is useful for searching.
Concurrency Worker Pool Implementation on Golang
Basic Definition
A Worker pool is a goroutine management technique in concurrent programming in Go-Lang with powerfull processes. A number of workers are executed and each has the same task of completing a number of jobs. With this worker pool method, the use of memory and program performance will be optimized.
How to Implement Concurrency Pattern Fan In and Fan Out on Golang
Channels in Go
Creating concurrent programs in Go has a unique approach to handle and to implementation when we want share memory to communication. The approach is to share memory by communicating, instead of communicating by sharing memory which is not allowed in Go. This approach can be done by using channels that can be used by goroutines to communicate with each other.
How to implement Binary Search and Tree Golang
Basic Definition
Data structure Binary Search and Tree is a pattern used for tree -based search. Before you further know Binary Search Tree commonly called BST, you need to first understand the concept of tree. Tree (tree) is a form of data structure that illustrates the hierarchical relationship between its elements (such as one to many relations). A node in a tree can usually have several more nodes as branching over him.
How to implement queue (queue) in Go Language
Basic Definition
Queue or often we know is a queue data structure where the data we enter will be delivered, in other words the first data will come out first. Usually we often know that Istra FIFO (First in First Out).
How to Determine Consonant Vowels in Golang
Introduction
Determining consonant vowels here will be divided into several examples. Later we will know better which processes will be carried out sequentially. What we already know is that the vowel characters are a
,i
,u
,e
,o
and this will be a condition in the program later.