Strings, Bytes and Runes | Golang | intermediate level

Author: Sreekanth
Published At: 2022-12-24T00:00:00
Length: 14:04

Summary

Description

Covers memory layout of string data type, its relationship with rune slices and byte slices in Golang. We also discuss the conversion between these types, the compiler optimizations on these conversions and the strings.Builder object.

Ascii, unicode and UTF-8 : https://youtu.be/wIVmDPc16wA

0:00 Raw vs Interpreted string literals

1:40 String header & Memory Layout

2:37 Rune data type

4:45 Strings are Immutable

5:03 Slicing

5:22 Range Loop

6:50 Unicode replacement character

7:37 String - Bytes - Runes conversions

9:57 Compiler optimizations

11:02 String concatenation

12:33 strings.Builder

12:44 strings.Builder vs bytes.Buffer

Translated At: 2025-07-06T11:34:27Z

Request translate (One translation is about 5 minutes)

Version 3 (stable)

Optimized for a single speaker. Suitable for knowledge sharing or teaching videos.

Recommended Videos