Go (Golang)

Insertar y Concatenar Elementos en un Slice en GO (Golang)

package main import (     "fmt" ) func main() {     arr1 := []int{32, 57, 35, 22}     arr2 := []int{32, 57, 35, 22}     arr1 = append(arr1, 0)   // Making space for the new element     copy(arr1[3:], arr1[2:]) // Shifting elements     arr1[2] = 99             // Copying/inserting the value     fmt.Println(arr1)        // Printing Result     …

Read More »

Notas sobre Go (GoLang) para Programadores

En Go Golang, se puede definir un alias para un tipo de dato mediante type Celsius float64 type Nombre string y posteriormente declarar una variable de esa forma, en lugar de var temperatura float64, que sea var temperatura Celsius Las inicializaciones se pueden hacer explicitas de tipo o implícitas en …

Read More »