---
title: "Discussion on \"If/else, switch, anonymous function and type assertion in golang\" | Hashnode"
description: "Discussion on \"If/else, switch, anonymous function and type assertion in golang\". Explore if/else, switch, anonymous functions, and type assertion in Go! Enhance your Go programming skills with practical examples and insights"
url: "https://hashnode.com/posts/ifelse-switch-anonymous-function-and-type-assertion-in-golang/685ce59298b4e8c43ea275ba"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [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

Jun 26, 2025 · 3 min read · malka-day3-of-learning-development.hashnode.dev  
Read the article

-   [#if-else](https://hashnode.com/tag/if-else)
-   [#anonymous-function](https://hashnode.com/tag/anonymous-function)
-   [#type-assertions](https://hashnode.com/tag/type-assertions)
-   [#golang](https://hashnode.com/tag/golang)
-   [#switch-case](https://hashnode.com/tag/switch-case)

## Written by

[Malka Ali](https://hashnode.com/@Malka)

@Malka · India, UP.

  
[View profile](https://hashnode.com/@Malka)

Learning Go | Exploring APIs,Microservices DevOps & Cloud

👋 Hi, I’m Malka — a curious and dedicated BCA student exploring the world of backend development. I’m currently learning Go and diving deep into APIs, DevOps, and Cloud technologies. I write to document my learning journey, simplify complex concepts, and grow with the developer community. I’m passionate about building real-world projects and contributing to open-source in the future. 📌 Open to internships,full time working, freelancing work, tech collaborations, and mentorship!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
