diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-01 17:01:38 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-01 17:01:38 +0100 |
commit | 9dc8509a6601eb65a9ae6ce785173ad682a9438d (patch) | |
tree | f2d33df15ef9b93fbaa4456ff4930c343cd07559 | |
parent | c9e481b4548193af2c52865d78c86a2d7d4f1f3e (diff) |
now added the column of keys to the master
-rw-r--r-- | pkg/datamaps/writer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go index e1cb713..144ae4d 100644 --- a/pkg/datamaps/writer.go +++ b/pkg/datamaps/writer.go @@ -121,7 +121,7 @@ func ExportMaster(opts *Options) error { log.Fatal(err) } dmlKey := datamapKeys[masterRow-1] - if sl := r.WriteSlice(values[dmlKey], -1); sl == -1 { + if sl := r.WriteSlice(append([]string{dmlKey}, values[dmlKey]...), -1); sl == -1 { log.Printf("not a slice type") } log.Printf("writing slice to row\n") |