---
title: "Omkar Bhagat (@omkarbhagat) | Hashnode"
description: "Software Engineer at Google Ireland. Read the latest articles by Omkar Bhagat on Hashnode."
url: "https://hashnode.com/@omkarbhagat"
---

@omkarbhagat

# Omkar Bhagat

@omkarbhagat · Ireland · Joined December 2020

Software Engineer at Google Ireland

### [Introduction to Unit Testing in Go](https://omkarbhagat.hashnode.dev/introduction-to-unit-testing-in-go?utm_source=hashnode&utm_medium=feed)

Unit testing is a crucial practice in software development, ensuring that individual components of your code work as expected. In Go, testing is straightforward, with robust built-in tools that make it easy to write and run tests. Why Unit Testing Ma...

2 min read · [omkarbhagat.hashnode.dev](https://omkarbhagat.hashnode.dev/introduction-to-unit-testing-in-go?utm_source=hashnode&utm_medium=feed)

[Aug 11, 2024](https://hashnode.com/posts/introduction-to-unit-testing-in-go/66b9363c443e429d5493ad30)

### [Handy GoLang Date Time Snippets](https://omkarbhagat.hashnode.dev/handy-golang-date-time-snippets?utm_source=hashnode&utm_medium=feed)

1\. Getting the Current Date and Time currentTime := time.Now() fmt.Println("Current Time:", currentTime) // Output: Current Time: 2024-08-10 14:30:05.123456789 +0000 UTC m=+0.000000001 Explanation: Retrieves the current date and time including nanos...

7 min read · [omkarbhagat.hashnode.dev](https://omkarbhagat.hashnode.dev/handy-golang-date-time-snippets?utm_source=hashnode&utm_medium=feed)

[Aug 10, 2024](https://hashnode.com/posts/handy-golang-date-time-snippets/66b7d73c1c9f58b0992648fc)

### [A Beginner's Guide to Time Handling in Go](https://omkarbhagat.hashnode.dev/a-beginners-guide-to-time-handling-in-go?utm_source=hashnode&utm_medium=feed)

Handling time is a fundamental part of many applications, and Go provides a robust set of tools for working with time. Whether you're working with timestamps, time zones, or durations, Go’s time package is both powerful and easy to use. In this artic...

4 min read · [omkarbhagat.hashnode.dev](https://omkarbhagat.hashnode.dev/a-beginners-guide-to-time-handling-in-go?utm_source=hashnode&utm_medium=feed)

[Aug 9, 2024](https://hashnode.com/posts/a-beginners-guide-to-time-handling-in-go/66b659037615302741baf74b)

### [Go Error Handling Essentials: A Beginner’s Guide](https://omkarbhagat.hashnode.dev/go-error-handling-essentials-a-beginners-guide?utm_source=hashnode&utm_medium=feed)

1\. The Basics: Errors in Go What is an Error? In Go, an error is a value indicating that something went wrong. Think of it as a signal saying, "Oops, something didn't go as planned!" Basic Error Handling Functions in Go often return two values: the r...

4 min read · [omkarbhagat.hashnode.dev](https://omkarbhagat.hashnode.dev/go-error-handling-essentials-a-beginners-guide?utm_source=hashnode&utm_medium=feed)

[Aug 7, 2024](https://hashnode.com/posts/go-error-handling-essentials-a-beginners-guide/66b3fc9c5c5e95f8980e26ef)

### [Sentinel Errors and Error Chaining in Go: A Concise Guide](https://omkarbhagat.hashnode.dev/sentinel-errors-and-error-chaining-in-go-a-concise-guide?utm_source=hashnode&utm_medium=feed)

Sentinel Errors In Go, sentinel errors are specific, pre-defined error values that are used throughout a codebase to indicate particular error conditions. They are often used for comparison to handle specific error cases. Here's a brief explanation w...

4 min read · [omkarbhagat.hashnode.dev](https://omkarbhagat.hashnode.dev/sentinel-errors-and-error-chaining-in-go-a-concise-guide?utm_source=hashnode&utm_medium=feed)

[Aug 6, 2024](https://hashnode.com/posts/sentinel-errors-and-error-chaining-in-go-a-concise-guide/66b2aafc8c1f2d3a29ce4dda)
