Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion structures/maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func main() {
sim["TWO"] = 2

//...and read from it
fmt.Printf("%d %d %d", sim["ONE"], sim["TWO"], sim["THREE"])
fmt.Printf("%d %d %d\n", sim["ONE"], sim["TWO"], sim["THREE"])

//If you request a key that is not present in the map, you will receive the ZERO VALUE for the map's value type
//In the example above, requesting sim["THREE"] returns 0, because that is the zero value for int
Expand Down