How can i make sure the value of a string slice element is unchanged when calling a function in golang?

后端 未结 0 1709
无人及你
无人及你 2021-01-21 13:48

I have a string slice, when i called a function, it updates the value of one of the element, and do something with it.

 func changeValue(y string, p ...string) {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题