Strings

  1. Single and double quotes
  2. Runes
  3. Strings
  4. Change string
  5. Strings and Runes
  6. Length of string
  7. iterate over characters in a string
  8. String Contains, HasPrefix, HasSuffix
  9. Split
  10. Join
  11. Split on whitespaces
  12. Newlines
  13. Read line from stdin (keyboard)
  14. Read line from stdin (keyboard) with error handling
  15. Trim line - remove trailing newline from string
  16. Strings and bytes
  17. Scan in a loop
  18. Compare strings
  19. Raw strings
  20. Multiline strings
  21. Exercise: how long is this string?
  22. Exercise: which string is longer?
  23. Exercise: which string is ahead in ABC?
  24. Exercise: which string is ahead - menu
  25. Exercise: Hide substring
  26. Solution: how long is this string?
  27. Solution: which string is longer?
  28. Solution: which string is ahead in ABC?
  29. Solution: which string is ahead - menu
  30. Solution: Hide substring