Skip to content

Commit cacef8e

Browse files
committed
readme
1 parent 091d86a commit cacef8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ipns/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"time"
1818

1919
"github.com/ipfs/boxo/ipns"
20+
"github.com/ipfs/boxo/path"
2021
ic "github.com/libp2p/go-libp2p/core/crypto"
2122
)
2223

@@ -29,7 +30,7 @@ func main() {
2930
}
3031

3132
// Define the path this record will point to.
32-
path := []byte("/ipfs/bafkqac3jobxhgidsn5rww4yk")
33+
path := path.FromString("/ipfs/bafkqac3jobxhgidsn5rww4yk")
3334

3435
// Until when the record is valid.
3536
eol := time.Now().Add(time.Hour)

0 commit comments

Comments
 (0)