mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
名称转换
This commit is contained in:
18
json/struct_test.go
Normal file
18
json/struct_test.go
Normal file
@ -0,0 +1,18 @@
|
||||
package json
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMapModify(t *testing.T) {
|
||||
m := map[string]string{
|
||||
"A": "A",
|
||||
}
|
||||
|
||||
modify(m)
|
||||
t.Log(m)
|
||||
}
|
||||
|
||||
func modify(m map[string]string) {
|
||||
m["B"] = "bbb"
|
||||
}
|
Reference in New Issue
Block a user