This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'Fedora-Cloud-Base-Virtualbox-22'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: fedora_vboxguest_default_1437993723401_22794 | |
==> default: Fixed port collision for 22 => 2222. Now on port 2201. | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main.go b/main.go | |
index f4407a6..c430412 100644 | |
--- a/main.go | |
+++ b/main.go | |
@@ -96,6 +96,7 @@ func get_value(data map[string]interface{}, keyparts []string) string { | |
func json2csv(r LineReader, w *csv.Writer, keys []string, printHeader bool) { | |
var line []byte | |
var err error | |
+ line_count := 0 | |