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. How to get first and last element of slice in Golang?

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

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

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

  5. How to Unmarshal nested JSON structure?

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

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

  8. How to include and execute HTML template?

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

  10. How to check string is in json format?

  11. How to use for and foreach loop?

  12. Functions mess (recursive anonymous function) in Golang

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

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

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

  16. Example of Pointers with Struct

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

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

  19. Regular expression to extract domain from URL

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

  21. How to Remove duplicate values from Slice?

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

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

  24. Split a character string based on change of character

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