gx + package.json
This commit is contained in:
parent
e8d4b720f1
commit
1a9dc324d8
|
@ -13,8 +13,11 @@
|
|||
|
||||
## Installation
|
||||
|
||||
You need go, gx and gx-go installed as a prerequisite. See http://github.com/ipfs/go-ipfs/ on how to install these.
|
||||
|
||||
```
|
||||
$ go get github.com/whyrusleeping/ipfs-key
|
||||
$ go get -d github.com/whyrusleeping/ipfs-key
|
||||
$ gx install
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
4
main.go
4
main.go
|
@ -6,8 +6,8 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
ci "github.com/libp2p/go-libp2p-crypto"
|
||||
peer "github.com/libp2p/go-libp2p-peer"
|
||||
peer "gx/ipfs/QmfMmLGoKzCHDN7cGgk64PJr4iipzidDRME8HABSJqvmhC/go-libp2p-peer"
|
||||
ci "gx/ipfs/QmfWDLQjGjVe4fr5CoztYW2DYYjRysMJrFe1RCsXLPTf46/go-libp2p-crypto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
28
package.json
Normal file
28
package.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"author": "whyrusleeping",
|
||||
"bugs": {
|
||||
"url": "https://github.com/whyrusleeping/ipfs-key/issues"
|
||||
},
|
||||
"gx": {
|
||||
"dvcsimport": "github.com/whyrusleeping/ipfs-key"
|
||||
},
|
||||
"gxDependencies": [
|
||||
{
|
||||
"hash": "QmfWDLQjGjVe4fr5CoztYW2DYYjRysMJrFe1RCsXLPTf46",
|
||||
"name": "go-libp2p-crypto",
|
||||
"version": "1.3.1"
|
||||
},
|
||||
{
|
||||
"hash": "QmfMmLGoKzCHDN7cGgk64PJr4iipzidDRME8HABSJqvmhC",
|
||||
"name": "go-libp2p-peer",
|
||||
"version": "2.1.0"
|
||||
}
|
||||
],
|
||||
"gxVersion": "0.10.0",
|
||||
"language": "go",
|
||||
"license": "MIT",
|
||||
"name": "ipfs-key",
|
||||
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user