1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

gofmt -s -w .

Former-commit-id: 6cca675303187f10377a7a713b2e7b3cdf16fd18
This commit is contained in:
kataras
2017-06-10 03:56:42 +03:00
parent c4f5fae561
commit 26c315cdb1
10 changed files with 58 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ func TestMuttable(t *testing.T) {
// map
p.Set("map", map[string]myTestObject{"key 1": myTestObject{"value 1"}, "key 2": myTestObject{"value 2"}})
p.Set("map", map[string]myTestObject{"key 1": {"value 1"}, "key 2": {"value 2"}})
vMap := p.Get("map").(map[string]myTestObject)
vMap["key 1"] = myTestObject{"modified"}
@@ -60,7 +60,7 @@ func TestImmutable(t *testing.T) {
}
// map
p.SetImmutable("map", map[string]myTestObject{"key 1": myTestObject{"value 1"}, "key 2": myTestObject{"value 2"}})
p.SetImmutable("map", map[string]myTestObject{"key 1": {"value 1"}, "key 2": {"value 2"}})
vMap := p.Get("map").(map[string]myTestObject)
vMap["key 1"] = myTestObject{"modified"}