Sobes.tech
Senior

Lavori?

sobes.tech AI

Risposta dell'AI

Sì, lavoro attivamente con Go (Golang) e lo utilizzo per sviluppare applicazioni server ad alte prestazioni e microservizi.

Esempio di un semplice server HTTP in Go:

package main

import (
    "fmt"
    "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "Ciao, mondo!")
}

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

Questo codice avvia un server web che risponde "Ciao, mondo!" a tutte le richieste.