I have some php code which I'm trying to migrate to Golang code. This is it:
Code in PHP:
class AuditProcessor {
public function __construct( BfsBlockChain $Bfs )
{
$this->bfs = $bfs;
}
I know this is a class, and there is a function inside of it. My question is: in Golang, can I have a function inside my struct? Or how can I replace the code, or format it?