Golang ProgramsGolang Programs

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

Examples tagged with 'fmt'

Golang Examples and Solutions

  1. Regular expression to extract DNS host-name or IP Address from string

  2. How to get first and last element of slice in Golang?

  3. How to use Ellipsis (...) in Golang?

  4. How to Unmarshal nested JSON structure?

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

  6. How to include and execute HTML template?

  7. How to fetch an Integer variable as String in Go?

  8. How to get struct variable information using reflect package?

  9. How to check string is in json format?

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

  11. Functions mess (recursive anonymous function) in Golang

  12. How to use for and foreach loop?

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

  14. Example of Sscan vs Sscanf vs Sscanln from FMT Package

  15. Example of Pointers with Struct

  16. How to append text to a file in Golang?

  17. Regular expression to extract domain from URL

  18. How do you write multi-line strings in Go?

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

  20. How to Remove duplicate values from Slice?

  21. How to read/write from/to file in Golang?

  22. Split a character string based on change of character

  23. How to concatenate two or more slices in Golang?

  24. How to read names of all files and folders in current directory?

  25. How to Decode or Unmarshal bi-dimensional array of integers?