diff options
| author | Teddy Wing | 2017-06-04 00:10:14 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-06-04 00:10:14 +0200 | 
| commit | 7e711772def7a5d711500c3c6c37ea41b57ac598 (patch) | |
| tree | c3c57053359c5442be14ae70bc65f65a3ef4d90a /timetask/module.go | |
| parent | c113de965dea24c44023a9aabcff7f8ee1f0caa0 (diff) | |
| download | timetasker-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.go | 2 | 
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 { | 
