Getting started with Go — Maps

newMap := make(map[string]int)
var newMap = map[string]string{"testing":"test", "123":"1234"}
for key, value := range newMap{fmt.Println(key, value)
}
newMap["testing123123"] = "test_value"
results := newMap["testing123123"]
delete(newMap, "testing123123")
if elem, ok := newMap["testing123123]; ok{//If it does exist, do something
}

--

--

--

Learning, and posting my findings!

Love podcasts or audiobooks? Learn on the go with our new app.

Spring Boot: Running Grafana inside my app

Javascript Integration with Docker and Machine Learning

Implications of Serverless Technologies in Healthcare

CS50x — logging my journey — Week 0

Hosting Blazor on itch.io

Using Riverpod Future Provider to Fetch API

Docker, it’s not rocket science, Build a Minified React App and Serve on Nginx — Part II

Lambda Powershell Layer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matthew Boyd

Matthew Boyd

Learning, and posting my findings!

More from Medium

Why should you learn Golang?

The Proper Way To Start A Node Project

Testing Web Server: Part 2

Go Language — Part 1(What is Go Language and Setup the Environment)?