master
parent
d7abadee25
commit
454acc373c
2 changed files with 19 additions and 5 deletions
@ -0,0 +1,19 @@ |
||||
package xml |
||||
|
||||
import ( |
||||
"fmt" |
||||
"testing" |
||||
) |
||||
|
||||
type Map struct { |
||||
Use int |
||||
A string |
||||
} |
||||
|
||||
func TestEncode(t *testing.T) { |
||||
c := codec{} |
||||
fmt.Println(c.Marshal(Map{ |
||||
Use: 11, |
||||
A: "xxx", |
||||
})) |
||||
} |
Loading…
Reference in new issue