Sobes.tech
Senior

¿Trabajas?

sobes.tech AI

Respuesta de la IA

Sí, trabajo activamente con Go (Golang) y lo utilizo para desarrollar aplicaciones de servidor de alto rendimiento y microservicios.

Ejemplo de un servidor HTTP simple en Go:

package main

import (
    "fmt"
    "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "¡Hola, mundo!")
}

func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8080", nil)
}

Este código inicia un servidor web que responde "¡Hola, mundo!" a todas las solicitudes.