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

Examples tagged with 'fmt'

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