withcodeexample.comHow Single Sign-On (SSO) Works: An Example in GolangIf you’ve ever used your Google or Facebook account to sign into a website without creating a new password, that’s Single Sign-On (SSO) in action. Pretty neat, right? Now if you’re a developer wondering what SSO actually is, how it works, and whether...Apr 17, 2025·5 min read
withcodeexample.comModel Context Protocol: What It Is and Why It Matters in AI WorkflowsAs the world of artificial intelligence (AI) keeps growing, there’s a lot of buzz around how models understand, remember, and use information during interactions. That’s where the Model Context Protocol (MCP) comes into the picture. It’s not just ano...Apr 10, 2025·6 min read
withcodeexample.comUnderstanding Time and Duration in Golang with Real ExamplesWorking with time in Go is pretty straightforward once you get the hang of it. Go’s standard library provides a powerful time package that lets you do everything—from checking the current time, calculating durations, formatting dates, to even parsing...Apr 9, 2025·3 min read
withcodeexample.comGolang Gin Authentication Middleware ExampleIn this article, we will explore how to implement authentication middleware in Golang using the Gin framework. Middleware is a powerful feature that allows you to intercept requests and perform actions before they reach your handlers. We will use JSO...Apr 7, 2025·2 min read
withcodeexample.comConfluent Kafka Go: Building Real-Time Streaming Apps with GolangWhat Is Confluent Kafka Go? Confluent Kafka Go is the official Golang client library for Apache Kafka®, developed and maintained by Confluent. It provides a robust and efficient way for Go developers to interact with Kafka, enabling seamless integrat...Apr 2, 2025·8 min read