🐹 Cap 01: Introdução ao Go, Ferramentas da CLI (go run, go build) e Entrada/Saída (fmt) - Exemplos Práticos
Código executável completo demonstrando os conceitos abordados em Go.
🗺️ Fluxo de Execução
flowchart LR
GO["Código Go: main.go"] --> COMPILER["Go Compiler (go build -ldflags='-s -w')"]
COMPILER --> BIN["Binário Nativo Estático Único (Zero Dependências Externas)"]
BIN --> RUN["⚡ Execução Instantânea no SO"]
style GO fill:#e1f5fe,stroke:#03a9f4,stroke-width:1px
style COMPILER fill:#fff3e0,stroke:#ff9800,stroke-width:2px
style BIN fill:#e8f5e9,stroke:#4caf50,stroke-width:2px
📄 Código de Demonstração (main.go)
package main
import "fmt"
func main() {
\fmt.Println("Olá, Engenharia de Sistemas em Go! 🐹")
}
🚀 Saída Esperada no Terminal
$ go run main.go
Olá, Engenharia de Sistemas em Go! 🐹
🧭 Navegação Rápida
| 📖 Teoria | 📊 Slides | 🧠 Quiz | 💻 Exemplos | 🧩 Exercícios | | :— | :— | :— | :— | :— | | Ler Tópico | Ver Slides | Fazer Quiz | Ver Código | Praticar |