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

Examples tagged with 'fmt'

  1. How do you write multi-line strings in Go?
  2. How to set, get, and list environment variables?
  3. Regular expression to extract domain from URL
  4. How to read/write from/to file in Golang?
  5. How to Remove duplicate values from Slice?
  6. How to fetch an Integer variable as String in Go?
  7. How to read names of all files and folders in current directory?
  8. Split a character string based on change of character
  9. Example: How to use ReadAtLeast from IO Package in Golang?
  10. How to Decode or Unmarshal bi-dimensional array of integers?
  11. How to get first and last element of slice in Golang?
  12. How to check if a map contains a key in Go?
  13. How to handle HTTP Get response?
  14. Example of Sscan vs Sscanf vs Sscanln from FMT Package
  15. How to convert Go struct to JSON?
  16. How to update content of a text file?
  17. Example Function that takes an interface type as value and pointer?
  18. Various examples of printing and formatting in Golang
  19. Encoding and Decoding using json.Marshal and json.Unmarshal
  20. Example: ReadAll, ReadDir, and ReadFile from IO Package
  21. How pointer & and * and ** works in Golang?
  22. How to concatenate two or more slices in Golang?
  23. How to use Ellipsis (...) in Golang?
  24. Regular expression to extract DNS host-name or IP Address from string
  25. Example: How to use TeeReader from IO Package in Golang?