Golang ProgramsGolang Programs

Welcome to Golang Programs, Get the best new programs in your inbox, daily.

Examples tagged with 'strings'

Golang Examples and Solutions

  1. How can we reverse a simple string in Go?

  2. Replace first occurrence of string using Regexp

  3. How to trim leading and trailing white spaces of a string?

  4. Regular expression to extract text between square brackets

  5. Example: How to use TeeReader from IO Package in Golang?

  6. How to reads and decodes JSON values from an input stream?

  7. Example: How to use ReadAtLeast from IO Package in Golang?

  8. How to count number of repeating words in a given String?

  9. Replace numbers by zero from string

  10. How to split a string on white-space?

  11. Replace any non-alphanumeric character sequences with a dash using Regex

  12. Different ways to convert Byte Array into String

  13. Split URL and Get Parameters from URL

  14. Example: How to use ReadFull from IO Package in Golang?

  15. How to set, get, and list environment variables?