diff --git a/README.md b/README.md index 1ec05d3..042af3a 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,15 @@ if err != nil { // table.GetValue(0, 0) ``` +### Convert table to map +Key comes from first column value, value from second column value. + +``` +m := table.ToMap() + +log.Printf("key values: %+v\n", m) +``` + ### Export table as CSV ``` buf := bytes.NewBufferString("")