golang convert byte stream to string code example Example: golang byte to string str:=string(data) fmt.Print(str)