{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
.go Code

Go सोर्स फ़ाइल (.go)

Google द्वारा विकसित एक स्टैटिकली-टाइप्ड प्रोग्रामिंग भाषा जो सरलता और दक्षता पर केंद्रित है। Go फ़ाइलें क्लाउड सर्विसेज़, CLI टूल्स और कॉन्करेंट सिस्टम बनाने के लिए उपयोग की जाती हैं।

MIME Type

text/x-go

प्रकार

टेक्स्ट

संपीड़न

दोषरहित

लाभ

  • + 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

हानियाँ

  • No generics until Go 1.18 (2022) — still maturing
  • Error handling is verbose (if err != nil pattern)
  • No inheritance or traditional OOP features

.GO कब उपयोग करें

क्लाउड सर्विसेज़ (Docker, Kubernetes), CLI टूल्स, माइक्रोसर्विसेज़, नेटवर्क प्रोग्रामिंग, और ऐसे सिस्टम जहाँ कॉन्करेंसी और तेज़ कम्पाइलेशन महत्वपूर्ण हो।

तकनीकी विवरण

Go सोर्स (.go) UTF-8 एन्कोडेड है और go build/run द्वारा स्टैटिकली-लिंक्ड बाइनरी में कम्पाइल होती है। goroutines (लाइटवेट थ्रेड), channels, interfaces (implicit), garbage collection और gofmt (मानक फॉर्मेटर) Go की विशेषताएँ हैं।

इतिहास

Robert Griesemer, Rob Pike और Ken Thompson ने Google में 2007 में Go डिज़ाइन किया और 2009 में रिलीज़ किया। Go 1.0 (2012) ने backward compatibility गारंटी दी। Go modules (2018) ने dependency management हल किया। Go generics (2022, Go 1.18) ने एक बड़ी कमी दूर की।

.GO से रूपांतरित करें

.GO में रूपांतरित करें

संबंधित फ़ॉर्मेट