---
title: "Discussion on \"How can I merge two maps in go?\" | Hashnode"
description: "Discussion on \"How can I merge two maps in go?\". Merge two maps in GoLang in 3 different methods"
url: "https://hashnode.com/posts/how-can-i-merge-two-maps-in-go/63d683f4bcfc25f2874af66b"
---

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

Discussion

# [How can I merge two maps in go?](https://vasanthkorada.hashnode.dev/how-can-i-merge-two-maps-in-go?utm_source=hashnode&utm_medium=feed)

Merge two maps in GoLang in 3 different methods

Jan 29, 2023 · 2 min read · vasanthkorada.hashnode.dev  
Read the article

-   [#golang](https://hashnode.com/tag/golang)
-   [#go](https://hashnode.com/tag/go)
-   [#backend](https://hashnode.com/tag/backend)
-   [#golang-developer](https://hashnode.com/tag/golang-developer)
-   [#mergemapsingo](https://hashnode.com/tag/mergemapsingo)

## Written by

[Vasanth Korada](https://hashnode.com/@vasanthkorada)

@vasanthkorada

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

Developer

Highly motivated in building software products.

## Responses 1

Markdown supported · ⌘↵ to post

[Marcelloh](https://hashnode.com/@marcelloh)

[Feb 8, 2023](https://hashnode.com/posts/how-can-i-merge-two-maps-in-go/63d683f4bcfc25f2874af66b/comment/63e366b292c11fd8b26f18a3)

Method 1 & 2 are faster than the generic method 3. (about factor 2)
