Add Golang write hook