Go – List

Preface In this section we will learn about data types List in Go. In addition to the list data types that we have learned about such as arrays, slices, and maps, Go provides another data type: List included in the package container/list. List Type List Package container/list In fact, it is the structure of the Double-linked […]

Continue Reading

Go – String

Preface Go has packages strings supports very powerful string manipulations. Functions that manipulate strings Package strings Provides several functions to work with string Usually used as follows: package main import (     “fmt”     s “strings” ) func main() {     fmt.Println(“Contains: “, s.Contains(“test”, “es”))     fmt.Println(“Count: “, s.Count(“test”, “t”))   […]

Continue Reading

Go – Control commands

Preface In this section we will learn about program control commands for, if and switch. The for command Assuming we need to print the numbers 1 through 10 on the screen, we can write 10 instructions fmt.Println() as follows: package main import “fmt” func main() { fmt.Println(1) fmt.Println(2) fmt.Println(3) fmt.Println(4) fmt.Println(5) fmt.Println(6) fmt.Println(7) fmt.Println(8) fmt.Println(9) […]

Continue Reading