csvdiff

command
v0.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

README

CSV DIFF

A simple program for debugging purpose to compare the difference between two .csv files.

We use it to compare our .csv file generated by fitconv with the .csv file generated by Official SDK's FitCSVTool.jar. The essential values should match and if it doesn't match, we can identify it.

We include example of diff on sample-diff.txt. Currently, there is a different on how we interpret subfield as the main field (Dynamic Fields), the unit in our .csv is using "strokes" (from total_strokes) while the .csv official tool is using "cycles" (from main field: total_cycles). We just submit a question on garmin's forum here: https://forums.garmin.com/developer/fit-sdk/f/discussion/355464/dynamic-fields-interpretation-and-fit-sdk-for-go, hopefully it will be anwered soon.

Run

Go to csvdiff directory then run

$ go run main.go file1.csv file2.csv > diff.txt

Install

Go to csvdiff directory then run

$ go install .
$ csvdiff file1.csv file2.csv > diff.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL