gofix error
This commit is contained in:
parent
0ecfd7fd99
commit
4b31ea924d
4 changed files with 16 additions and 17 deletions
3
node.go
3
node.go
|
@ -5,7 +5,6 @@
|
|||
package xmlx
|
||||
|
||||
import (
|
||||
"os"
|
||||
"xml"
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
@ -45,7 +44,7 @@ func NewNode(tid byte) *Node {
|
|||
|
||||
// This wraps the standard xml.Unmarshal function and supplies this particular
|
||||
// node as the content to be unmarshalled.
|
||||
func (this *Node) Unmarshal(obj interface{}) os.Error {
|
||||
func (this *Node) Unmarshal(obj interface{}) error {
|
||||
return xml.Unmarshal(bytes.NewBuffer(this.Bytes()), obj)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue