March 2019
Intermediate to advanced
336 pages
9h 9m
English
The following code shows the main method, where the dictionary is initialized and printed:
// main methodfunc main() { var dict *Dictionary = &Dictionary{} dict.Put("1","1") dict.Put("2","2") dict.Put("3","3") dict.Put("4","4") fmt.Println(dict)}
Run the following commands to execute the dictionary.go file:
go run dictionary.go
The output is as follows:

Let's take a look at the TreeSet data structure in the following section.
Read now
Unlock full access