MCPcopy Index your code
hub / github.com/artdarek/go-unzip

github.com/artdarek/go-unzip @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
5 symbols 11 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Package go-unzip

Package go-unzip provides a very simple library to extract zip archive

Installation

go get -u github.com/artdarek/go-unzip

Examples

package main

import (
    "fmt"

    "github.com/artdarek/go-unzip/pkg/unzip"
)

func main() {
    uz := unzip.New()

    files, err := uz.Extract("./data/file.zip", "./data/directory")
    if err != nil {
        fmt.Println(err)
    }

    fmt.Printf("extracted files count: %d", len(files))
    fmt.Printf("files list: %v", files)
}

Contributing

Pull requests, bug fixes and issue reports are welcome.

Before proposing a change, please discuss your change by raising an issue.

Core symbols most depended-on inside this repo

New
called by 1
pkg/unzip/unzip.go
Extract
called by 1
pkg/unzip/unzip.go
extractAndWriteFile
called by 1
pkg/unzip/unzip.go
main
called by 0
cmd/example/main.go

Shape

Function 2
Method 2
Struct 1

Languages

Go100%

Modules by API surface

pkg/unzip/unzip.go4 symbols
cmd/example/main.go1 symbols

For agents

$ claude mcp add go-unzip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page