GOSAMPLES
All
Tours
Cheatsheets
Shorts
strings
Learn how to work with strings in Go
Please consider supporting us by disabling your ad blocker
🍒 Concatenate strings in Go
Learn the differences between string concatenation methods
introduction
strings
October 31, 2021
👈 Decode Base64 to a string in Go
Learn how to decode Base64 data to a string using encoding/base64 package
base64
encoding
strings
October 14, 2021
👉 Encode a string to Base64 in Go
Learn how to encode strings to Base64 using encoding/base64 package
base64
encoding
strings
October 14, 2021
🖨️ Convert string to []byte or []byte to string in Go
Learn the difference between a string and a byte slice
introduction
strings
slice
October 13, 2021
🔟 Convert string to bool in Go
Learn how to parse a string as a bool
introduction
strings
bool
September 30, 2021
👯 Remove duplicate spaces from a string in Go
Learn how to remove all redundant whitespaces from a string
introduction
strings
regex
September 29, 2021
📰 String padding in Go
Learn how to print aligned strings padded with spaces
introduction
strings
format
August 27, 2021
🍕 Compare two slices in Go
Learn how to check if two slices are equal
introduction
slice
strings
August 24, 2021
👣 Print struct variables in Go
Learn how to print struct with variable names
introduction
strings
go-spew
August 20, 2021
⚙️ Convert interface to string in Go
Learn how to format any value as a string
introduction
interface
strings
August 12, 2021
1
...
2
...
3