Created
July 26, 2019 15:46
-
-
Save kasvith/1c1c39d339d817197971c293c7ee57e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func FormatByteSlice(sl []byte) string { | |
builder := strings.Builder{} | |
for _, v := range sl { | |
builder.WriteString(fmt.Sprintf("%d,", int(v))) | |
} | |
return builder.String() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment