Rewrite PSD in Go.