golang_icon
If and else in Go Language

In this section, we’ll explore how to use if and else statements in Go. Imagine an if statement as a way to say:“If this condition is true, then do this.” It’s like a simple decision-making tool in code. Let’s look at an example written in Go: /* In this case, 'elementos' will be 0 because […]

Leer mas..
golang_icon
The switch Statement in Go

When we use switch in Go, we’re evaluating a condition and defining different outcomes for each case. It’s like writing multiple if-else statements using the same variable as the condition. Let’s try a simple example: day := "monday" switch day { case "monday": fmt.Println("es lunes") case "tuesday": fmt.Println("es martes") case "wednesday": fmt.Println("es miercoles") case "thursday": […]

Leer mas..
golang_icon
Deploying a Go web application on Apache

To deploy a Go web application on Apache, we need to understand how the Go language runs a web app. Go uses the net/http package (standard library) for this, which provides implementations for both HTTP clients and HTTP servers.

Leer mas..
golang_icon
Go Modules

In this section, we will look at Go modules. It's been a while since GOPATH started being replaced by this new way of managing the dependencies that make up our project. GOPATH is still usable but is becoming obsolete.

Leer mas..
golang_icon
Integrating C libraries into the Go language on Windows

Today, we will see how we can integrate C libraries into the Go language when using the Windows operating system.

Leer mas..
la categoria en-go tiene 8 post/s
Recent articles