BBhuwanindevkitlog.xyz·Jul 16, 2025 · 4 min readIntroduction to Goroutines in Go: What They Are and How to Use ThemOne of the standout features of the Go programming language is its native support for concurrency through goroutines. Whether you're building a web server, writing a scraper, or processing large datasets, goroutines allow you to do more with less—les...00
BBhuwanindevkitlog.xyz·Jul 15, 2025 · 5 min readThe Panic, Recover, and Defer Pattern Explained in GoIn Go, the trio of panic, recover, and defer provides a powerful mechanism for handling truly exceptional conditions while maintaining program robustness. Unlike common error handling via returning error, this pattern handles recoverable and unrecove...00
BBhuwanindevkitlog.xyz·Jul 15, 2025 · 3 min readHow to Create Custom Error TypesError handling is a critical part of writing robust and maintainable software. While built-in error types (like TypeError, ValueError, or SyntaxError in Python, or Error, TypeError, ReferenceError in JavaScript) are often sufficient, they can fall sh...00
BBhuwanindevkitlog.xyz·Jul 7, 2025 · 3 min readHow to Define and Use Structs in GoIn Go (Golang), structs are composite data types that group together variables under a single name. These variables, called fields, can be of different types and are used to represent more complex data models. Structs in Go are similar to classes in ...00
BBhuwanindevkitlog.xyz·Jul 6, 2025 · 3 min readA Beginner’s Guide to Interfaces in GoIn Go, interfaces are the foundation of polymorphism, abstraction, and flexible design but they work very differently compared to traditional object-oriented languages. What are interfaces in Go? In Go, an interface is a type that defines a set of me...00