aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/module.go
diff options
context:
space:
mode:
authorTeddy Wing2017-06-04 00:10:14 +0200
committerTeddy Wing2017-06-04 00:10:14 +0200
commit7e711772def7a5d711500c3c6c37ea41b57ac598 (patch)
treec3c57053359c5442be14ae70bc65f65a3ef4d90a /timetask/module.go
parentc113de965dea24c44023a9aabcff7f8ee1f0caa0 (diff)
downloadtimetasker-7e711772def7a5d711500c3c6c37ea41b57ac598.tar.bz2
Change `ParseXML()` name to `ModuleParseXML()`
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.
Diffstat (limited to 'timetask/module.go')
-rw-r--r--timetask/module.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/timetask/module.go b/timetask/module.go
index adef4e5..4dde57a 100644
--- a/timetask/module.go
+++ b/timetask/module.go
@@ -13,7 +13,7 @@ type moduleXML struct {
Modules []Module `xml:"response>item"`
}
-func ParseXML(xml_str string) ([]Module, error) {
+func ModuleParseXML(xml_str string) ([]Module, error) {
modules := moduleXML{}
err := xml.Unmarshal([]byte(xml_str), &modules)
if err != nil {