diff --git a/chaincfg/chainhash/README.md b/chaincfg/chainhash/README.md index b7ddf19ef7..755ec6d5eb 100644 --- a/chaincfg/chainhash/README.md +++ b/chaincfg/chainhash/README.md @@ -3,7 +3,7 @@ chainhash [![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) -[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd/chaincfg/chainhash) +[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd/chaincfg/chainhash/v2) ======= chainhash provides a generic hash type and associated functions that allows the @@ -11,8 +11,10 @@ specific hash algorithm to be abstracted. ## Installation and Updating +To add the dependency to your module, edit your go.mod or: + ```bash -$ go get -u github.com/btcsuite/btcd/chaincfg/chainhash +$ go get -d github.com/btcsuite/btcd/chaincfg/chainhash/v2@latest ``` ## GPG Verification Key diff --git a/chaincfg/chainhash/go.mod b/chaincfg/chainhash/go.mod index 1d865254dd..bf8df621da 100644 --- a/chaincfg/chainhash/go.mod +++ b/chaincfg/chainhash/go.mod @@ -1,3 +1,3 @@ -module github.com/btcsuite/btcd/chaincfg/chainhash +module github.com/btcsuite/btcd/chaincfg/chainhash/v2 go 1.17