Introdução ao Golang
William Prussak Macarini
23/11/2025GolangBackendProgramação


Go, também conhecida como Golang, é uma linguagem de programação de código aberto desenvolvida pelo Google. É conhecida por sua simplicidade, eficiência e forte suporte para programação concorrente.
package main import "fmt" func main() { fmt.Println("Olá, Mundo!") }
Uma das características mais poderosas do Go são as goroutines:
package main import ( "fmt" "time" ) func say(s string) { for i := 0; i < 3; i++ { time.Sleep(100 * time.Millisecond) fmt.Println(s) } } func main() { go say("mundo") say("olá") }
Go é uma excelente escolha para microsserviços, ferramentas CLI e aplicações backend de alta performance!
Go (also known as Golang) is a modern, fast, and efficient programming language. Let's get started!
package main import "fmt" func main() { fmt.Println("Hello, World!") }
type Person struct { Name string Age int } func (p Person) Greet() string { return fmt.Sprintf("Hi, I'm %s and I'm %d years old", p.Name, p.Age) } func main() { person := Person{Name: "Alice", Age: 30} fmt.Println(person.Greet()) }
Simplified concurrency:
func fetchData(url string) { // Fetch data... } func main() { go fetchData("https://api.example.com/users") go fetchData("https://api.example.com/posts") // Continue execution... }
Go is a powerful language for backend development. Give it a try!