This series of tutorials is about file I/O and operation system interaction in Go.
- 1How to read a whole file at once in Go
- 2How to read a file line by line in Go
- 3How to read a big file in chunks in Go
- 4How to write/ append to a file in Go
- 5How to write file using Bufio in Go
- 6How to read and write JSON files in Go
- 7How to read and parse XML files in Go
- 8How to list all files and subfolders in a folder in Go
- 9How to zip/ unzip a file or folder in Go
- 10Go: How to get filename & extension from a path
- 11Go: How to get the size of a file (in KB or mB)
- 12How to delete one or multiple files in Go
- 13How to check if a file or folder exist in Go
- 14How to delete a folder and all of its contents in Go
- 15How to get the current directory in Go
- 16How to copy or move a file in Go
- 17How to automatically generate unique file names in Go
- 18How to resize images in Go
- 19How to convert PNG or JPEG images to WEBP in Go
- 20How to add watermark to an image in Go
- 21How to programmatically upload files to AWS S3 using Go
- 22How to auto upload files to Dropbox using Go
- 23How to detect the current operating system in GO
- 24How to get CPU & RAM info by using Go (free, used, etc)
- 25How to get the current process ID in Go
- 26How to use environment variables in Go