From a1148b505c59cf94554f3e0b9ac5029dac794ed1 Mon Sep 17 00:00:00 2001 From: AllanCapistrano Date: Fri, 29 Sep 2023 12:55:22 -0300 Subject: [PATCH] chore: using indextation --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 0252c0e..8a9d0e3 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,6 @@ package main import ( "fmt" "log" - "strings" infoNode "github.com/allancapistrano/tangle-client-go/info" "github.com/allancapistrano/tangle-client-go/messages" @@ -24,13 +23,12 @@ func main() { // messages.SubmitMessage(nodeURL, "LB_REPLY", "{asdfghjkl}", 15) // Reading some messages by an index. - messagesByIndex, err := messages.GetAllMessagesByIndex(nodeURL, "LB_ENTRY_REPLY") + messagesByIndex, err := messages.GetAllMessagesByIndex(nodeURL, "REP_EVALUATION") if err != nil { log.Fatal(err) } for _, v := range messagesByIndex { - fmt.Println([]byte(strings.Trim(v.Content, "\t"))) fmt.Printf("Index: %s | Content: %s\n", v.Index, v.Content) }