alibaba/IOC-golang

[BUG] Proxy AOP layer returns reference value but not copy of value.

開放

#46 建立於 2022年6月20日

 (0 則留言) (0 個反應) (0 位負責人)Go (123 個分叉)auto 404
good first issue

倉庫指標

星標
 (1,230 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

With param like slice: []string , Here is an example:

// input is []string{"hello")
func (i *Impl) Write(input []string){
    input.append(input, "world")
}

The watch values would shows the final value of the param: []string{"hello", "world", but not the real param value []string{"hello"}

貢獻者指南