It's much easier! Just call ethereum's `crypto.ToECDSA` [1] with a big-endian encoded 256-bit unsigned integer of interest, e.g. 0x1 or 0x100, as described in the article. Try the resulting private key.
[1] https://godoc.org/github.com/ethereum/go-ethereum/crypto#ToE...