I don't think you could fit it to Go, no.
But see https://hackage.haskell.org/package/effectful for work in the general area that seems rather promising.