Chúng tôi không thể tìm thấy kết nối internet
Đang cố gắng kết nối lại
Có lỗi xảy ra!
Hãy kiên nhẫn trong khi chúng tôi khắc phục sự cố
Strings, Bytes và Runes | Golang | trình độ trung cấp
Tóm tắt nội dung
Mô tả
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
Dịch Vào Lúc: 2025-07-06T11:34:27Z