Post

GoLangGoLang

H
Harshel Mike

Posted on 28th February 2024|36 views

0
votes

Golang Convert Byte Array To String

What are the ways to convert byte array to string in GoLang

Answers
P
Anusha V

Posted on 28th February 2024

When we convert a byte array to string, we will get the same bytes as a string.

 Example:

 c := []byte(‘EFGH”)
 fmt.println(c)


 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos