File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ package main
22
33import (
44 "bytes"
5- "encoding/json"
65 "errors"
76 "fmt"
87 "os"
98 "strconv"
109 "time"
1110
12- "github.com/golang/protobuf/jsonpb"
13- "github.com/golang/protobuf/proto"
1411 "github.com/lightninglabs/loop"
1512 "github.com/lightninglabs/loop/looprpc"
1613 "github.com/lightninglabs/loop/swap"
14+ "github.com/lightninglabs/protobuf-hex-display/json"
15+ "github.com/lightninglabs/protobuf-hex-display/jsonpb"
16+ "github.com/lightninglabs/protobuf-hex-display/proto"
1717
1818 "github.com/btcsuite/btcutil"
1919
@@ -53,6 +53,7 @@ func printJSON(resp interface{}) {
5353
5454func printRespJSON (resp proto.Message ) {
5555 jsonMarshaler := & jsonpb.Marshaler {
56+ OrigName : true ,
5657 EmitDefaults : true ,
5758 Indent : " " ,
5859 }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ require (
1010 github.com/google/go-cmp v0.3.1 // indirect
1111 github.com/grpc-ecosystem/grpc-gateway v1.10.0
1212 github.com/jessevdk/go-flags v1.4.0
13+ github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d
1314 github.com/lightningnetwork/lnd v0.9.0-beta-rc3.0.20200121213302-a2977c4438b5
1415 github.com/lightningnetwork/lnd/queue v1.0.2
1516 github.com/urfave/cli v1.20.0
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI
136136github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf /go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk =
137137github.com/lightninglabs/neutrino v0.11.0 h1:lPpYFCtsfJX2W5zI4pWycPmbbBdr7zU+BafYdLoD6k0 =
138138github.com/lightninglabs/neutrino v0.11.0 /go.mod h1:CuhF0iuzg9Sp2HO6ZgXgayviFTn1QHdSTJlMncK80wg =
139+ github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d h1:QWD/5MPnaZfUVP7P8wLa4M8Td2DI7XXHXt2vhVtUgGI =
139140github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d /go.mod h1:KDb67YMzoh4eudnzClmvs2FbiLG9vxISmLApUkCa4uI =
140141github.com/lightningnetwork/lightning-onion v1.0.1 h1:qChGgS5+aPxFeR6JiUsGvanei1bn6WJpYbvosw/1604 =
141142github.com/lightningnetwork/lightning-onion v1.0.1 /go.mod h1:rigfi6Af/KqsF7Za0hOgcyq2PNH4AN70AaMRxcJkff4 =
You can’t perform that action at this time.
0 commit comments