You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
482 B
12 lines
482 B
package gomongo
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestXmlDecodeNoError(t *testing.T) {
|
|
resp := XmlDecodeNoError([]byte(`<?xml version="1.0" encoding="UTF-8"?><response><userid>15625210999</userid><Porderid>3941149604</Porderid><orderid>51482202204010652685</orderid><account>19176163324</account><face>10.0</face><amount>1</amount><starttime>2022-04-01 06:54:00</starttime><state>1</state><endtime>2022-04-01 06:59:40</endtime><error>0</error></response>`))
|
|
fmt.Println(resp)
|
|
}
|