We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 091d86a commit cacef8eCopy full SHA for cacef8e
1 file changed
ipns/README.md
@@ -17,6 +17,7 @@ import (
17
"time"
18
19
"github.com/ipfs/boxo/ipns"
20
+ "github.com/ipfs/boxo/path"
21
ic "github.com/libp2p/go-libp2p/core/crypto"
22
)
23
@@ -29,7 +30,7 @@ func main() {
29
30
}
31
32
// Define the path this record will point to.
- path := []byte("/ipfs/bafkqac3jobxhgidsn5rww4yk")
33
+ path := path.FromString("/ipfs/bafkqac3jobxhgidsn5rww4yk")
34
35
// Until when the record is valid.
36
eol := time.Now().Add(time.Hour)
0 commit comments