How do I mock a function that write result to it's argument in Go How do I mock a function that write result to it's argument in Go go go

How do I mock a function that write result to it's argument in Go