↓
Skip to main content
NucuLabs Blog
Home
About
Projects
Categories
Books
Home
About
Projects
Categories
Books
Archive
How to zip and unzip a directory in Go
April 1, 2025
·
3 mins
Programming
Golang
Golang
Archive
Zip
Tar
Go
How-To
Hello everyone! 👋 I wanted to write a short article about zipping and unzipping a directory in Golang. The answer is quite simple, you can use the AddFS to add the entire directory to the zip file like so: