diff options
author | Teddy Wing | 2017-06-04 00:05:39 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-04 00:05:39 +0200 |
commit | c113de965dea24c44023a9aabcff7f8ee1f0caa0 (patch) | |
tree | 6dca9378b3ac2d54e0ff1b965202b58320a7b303 /timetask/time_entry.go | |
parent | aff9a869ffab0eeb8c644826b9250a500468ff1a (diff) | |
download | timetasker-c113de965dea24c44023a9aabcff7f8ee1f0caa0.tar.bz2 |
Add module.go for parsing Module XML
A new function that parses the XML returned by the `RequestModules()`
function.
It provides a `Module` type that allows us to interact with modules more
easily in code.
The `ParseXML()` function will take an XML string and return a slice of
`Module`s.
Added a test just to facilitate development. Wasn't able to find an easy
way to compare slices in Go, so just printed the values and checked the
result visually. Not a useful test for future use, but it served its
purpose. Eventually it would be nice to find a way to compare structs
and have a real pass/fail condition.
Diffstat (limited to 'timetask/time_entry.go')
0 files changed, 0 insertions, 0 deletions