You should pass it to function calling as test(pers1)
and test(pers2)
solved How to pass struct as a function argument in Go?
You should pass it to function calling as test(pers1)
and test(pers2)
solved How to pass struct as a function argument in Go?