Cookies management by TermsFeed Cookie Consent

strings

Learn how to work with strings in Go

🍒 Concatenate strings in Go

Learn the differences between string concatenation methods
introduction strings

👈 Decode Base64 to a string in Go

Learn how to decode Base64 data to a string using encoding/base64 package
base64 encoding strings

👉 Encode a string to Base64 in Go

Learn how to encode strings to Base64 using encoding/base64 package
base64 encoding strings

🖨️ Convert string to []byte or []byte to string in Go

Learn the difference between a string and a byte slice
introduction strings slice

🔟 Convert string to bool in Go

Learn how to parse a string as a bool
introduction strings bool

👯 Remove duplicate spaces from a string in Go

Learn how to remove all redundant whitespaces from a string
introduction strings regex

📰 String padding in Go

Learn how to print aligned strings padded with spaces
introduction strings format

🍕 Compare two slices in Go

Learn how to check if two slices are equal
introduction slice strings

👣 Print struct variables in Go

Learn how to print struct with variable names
introduction strings go-spew

⚙️ Convert interface to string in Go

Learn how to format any value as a string
introduction interface strings
1 ... 2 ... 3