Kode Sumber Go
File Go (Golang) berisi kode sumber untuk bahasa pemrograman sistem Google. Go unggul dalam membangun server berperforma tinggi, alat CLI, dan infrastruktur cloud. Dikompilasi ke satu binary statis tanpa dependensi runtime.
Tipe MIME
text/x-go
Tipe
Teks
Kompresi
Lossless
Kelebihan
- + Compiles to a single static binary — no dependencies
- + Goroutines make concurrent programming simple and efficient
- + Fast compilation and excellent runtime performance
- + Enforced code formatting with go fmt
Kekurangan
- − No generics until Go 1.18 (2022) — still maturing
- − Error handling is verbose (if err != nil pattern)
- − No inheritance or traditional OOP features
Kapan Menggunakan .GO
Gunakan Go untuk server, microservices, alat CLI, utilitas DevOps, dan perangkat lunak apa pun di mana kesederhanaan dan performa penting.
Detail Teknis
Go diketik secara statis dengan garbage collection, goroutine untuk konkurensi ringan, channel untuk komunikasi, dan sistem modul sederhana. go fmt menerapkan gaya pemformatan kanonik.
Riwayat
Robert Griesemer, Rob Pike, dan Ken Thompson merancang Go di Google pada tahun 2007, merilisnya sebagai open source pada tahun 2009. Go 1.0 dirilis pada tahun 2012 dengan jaminan kompatibilitas yang kuat.