alibaba/IOC-golang

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

Aperta

#46 aperta il 20 giu 2022

 (0 commenti) (0 reazioni) (0 assegnatari)Go (123 fork)auto 404
good first issue

Metriche repository

Star
 (1230 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor