Guest User

Untitled

a guest
May 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. type TxnCard struct {
  2. Iota blockchain.Identity `json:"identity"`
  3. Theta blockchain.TxnType `json:"transaction_type"`
  4. Tau []int `json:"valid_transactions"`
  5. }
  6.  
  7. var foo TxnCard
  8.  
  9. if err := json.Unmarshal(body, &foo); err != nil {
  10. panic(err)
  11. }
  12. fmt.Printf("+vn", foo)
  13.  
  14. {"identity":{"Address":"9934:4761:6a9d:b1eb:c7a5:4021:2ca6:1fac"},
  15. "transaction_type":0,
  16. "valid_transactions":[],
  17. }
  18.  
  19. {Iota:�4Gaj���ǥ@!,��
  20. Theta:0
  21. Tau:[]
  22. }
Add Comment
Please, Sign In to add comment