A = test (a, z'00000000') test是: integer function test(a, m) integer, intent(in) :: m
end function test 错误: Type mismatch in argument 'm' at (1): passed INTEGER(16) to INTEGER(4)
return []byte("Venue does not exist") // return the json as the reponse}
我的structToJSON函数以一个空接口作为参数,因为我希望将各种不同的结构传递给该函数,并将它们作为JSON输出。然而,它给我的感觉并不是很安全。如果有任何东西可以满足空接口,我可以向该函数传递任何我想要的东西,当json.Marshal尝试执行它<