aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/module.go
AgeCommit message (Collapse)Author
2017-06-04Change `ParseXML()` name to `ModuleParseXML()`Teddy Wing
Prefix the function name to make it more obvious what it relates to. Since this function lives in the `timetask` module and will be used in contexts that have nothing to do with Modules.
2017-06-04Add module.go for parsing Module XMLTeddy Wing
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.