From a06f47493fe609933fa59fae484b326d36581077 Mon Sep 17 00:00:00 2001 From: Gediminas Date: Thu, 15 Oct 2020 10:04:04 +0300 Subject: [PATCH] [tools] Output annotations as base64 --- src/cmd/tools/read_data_files/main/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/tools/read_data_files/main/main.go b/src/cmd/tools/read_data_files/main/main.go index f56ed56bdc..d48e9ec561 100644 --- a/src/cmd/tools/read_data_files/main/main.go +++ b/src/cmd/tools/read_data_files/main/main.go @@ -22,7 +22,7 @@ package main import ( "bytes" - "encoding/hex" + "encoding/base64" "fmt" "io" "log" @@ -128,7 +128,7 @@ func main() { // Use fmt package so it goes to stdout instead of stderr fmt.Printf("{id: %s, dp: %+v", id.String(), dp) if len(annotation) > 0 { - fmt.Printf(", annotation: %s", hex.EncodeToString(annotation)) + fmt.Printf(", annotation: %s", base64.StdEncoding.EncodeToString(annotation)) } fmt.Println("}") }