Skip to content

Instantly share code, notes, and snippets.

View paulerickson's full-sized avatar

Paul Erickson paulerickson

View GitHub Profile
@paulerickson
paulerickson / unzip.go
Last active April 11, 2025 19:11
Golang unzip implementation
package unzip
import "archive/zip"
/**
* Extract a zip file named source to directory destination. Handles cases where destination dir…
* - does not exist (creates it)
* - is empty
* - already has source archive extracted into it (files are overwritten)
* - has other files in it, not in source archive (not overwritten)