// Get the height of the latest block on the mainnet latestHeight, err := btcutil.GetBlockCount() // Get the height of a block by its hash blockHash := "000000000000000000087a6a009bb21bd961e9bf654b4194028681c7ca50106b" blockHeight, err := btcutil.GetBlockHeight(blockHash) // Get the height of a block by its height blockHeight, err := btcutil.GetBlockHeight(123456)In the first example, we use `GetBlockCount()` to get the height of the latest block on the mainnet. In the second example, we use `GetBlockHeight()` to get the height of a block given its hash. In the third example, we use `GetBlockHeight()` to get the height of a block given its height. Overall, the github.com.conformal.btcutil package library provides useful functions for working with Bitcoin blockchain data structures such as blocks, transactions, and addresses, and Block Height is just one of the many functions it provides.