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. Various examples of printing and formatting in Golang

  2. Encoding and Decoding using json.Marshal and json.Unmarshal

  3. Example: ReadAll, ReadDir, and ReadFile from IO Package

  4. How pointer & and * and ** works in Golang?

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

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

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

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

  9. How to Unmarshal nested JSON structure?

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

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

  12. How to include and execute HTML template?

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

  14. How to check string is in json format?

  15. How to use for and foreach loop?

  16. Functions mess (recursive anonymous function) in Golang

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

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

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

  20. Example of Pointers with Struct

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

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

  23. Regular expression to extract domain from URL

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

  25. How to Remove duplicate values from Slice?