# Is it possible to change map value by key?

**URL:** <https://discourse.gohugo.io/t/is-it-possible-to-change-map-value-by-key/32538>\
**Category:** support\
**Created:** [April 26, 2021, 12:08pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-change-map-value-by-key/32538 "2021-04-26T12:08:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![fairplay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/fairplay/32/9884_2.png) [@fairplay](https://discourse.gohugo.io/u/fairplay)\
**Post date:** [April 27, 2021, 11:06am UTC](https://discourse.gohugo.io/t/is-it-possible-to-change-map-value-by-key/32538/10 "2021-04-27T11:06:03Z")

</div>

Of course Golang permits maps updating, here is example from the net

```auto
package main
 
import "fmt"
 
func main() {
	var employee = map[string]int{"Mark": 10, "Sandy": 20}
	fmt.Println(employee) // Initial Map
 
	employee["Mark"] = 50 // Edit item
	fmt.Println(employee)
}

```

So I’m far away of comparing languages, just looking for instrumentary that allows me to reach the goal - process some custom structured data. [My previous topic here](https://discourse.gohugo.io/t/creating-and-sorting-slice-of-slices-is-it-possible/32513) referring to the same goal.

---

_[View the full topic](https://discourse.gohugo.io/t/is-it-possible-to-change-map-value-by-key/32538)._
