alibaba/IOC-golang

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

オープン

#46 opened on 2022/06/20

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (123 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (1,230 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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"}

コントリビューターガイド