---
title: "#type-assertions articles | Hashnode"
description: "Explore 2 articles tagged #type-assertions on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/type-assertions"
---

Tag

# #type-assertions

2 posts · 0 followers

[Malka Ali](https://hashnode.com/@Malka) · [Jun 26, 2025](https://hashnode.com/posts/ifelse-switch-anonymous-function-and-type-assertion-in-golang/685ce59298b4e8c43ea275ba)

### [If/else, switch, anonymous function and type assertion in golang](https://malka-day3-of-learning-development.hashnode.dev/ifelse-switch-anonymous-function-and-type-assertion-in-golang?utm_source=hashnode&utm_medium=feed)

Explore if/else, switch, anonymous functions, and type assertion in Go! Enhance your Go programming skills with practical examples and insights

3 min read · [malka-day3-of-learning-development.hashnode.dev](https://malka-day3-of-learning-development.hashnode.dev/ifelse-switch-anonymous-function-and-type-assertion-in-golang?utm_source=hashnode&utm_medium=feed)

[HARSH VARDHAN SINGH](https://hashnode.com/@harsh082) · [Jun 5, 2024](https://hashnode.com/posts/mastering-interfaces-and-type-assertions-in-go-empowering-flexibility-and-reusability/6660a2fb4c890a5b6150e9d9)

### [Mastering Interfaces and Type Assertions in Go: Empowering Flexibility and Reusability](https://harshvardhan082.hashnode.dev/mastering-interfaces-and-type-assertions-in-go-empowering-flexibility-and-reusability?utm_source=hashnode&utm_medium=feed)

Interfaces in Go provide a powerful way to define the behavior expected from various types without dictating how these types should implement the behavior. This is in contrast to languages like Java, where interfaces define a strict contract that mus...

11 min read · [harshvardhan082.hashnode.dev](https://harshvardhan082.hashnode.dev/mastering-interfaces-and-type-assertions-in-go-empowering-flexibility-and-reusability?utm_source=hashnode&utm_medium=feed)
