Go壓縮解壓文件夾

Go的archive/zip包提供了文件的壓縮和解壓,本例涉及到的API以下(僅列出重要部分):web // zip.Writer用來寫入壓縮包 type Writer struct { // ... } // Create方法用來在zip包裏建立文件,返回的io.Writer用來寫內容 func (w *Writer) Create(name string) (io.Writer, er
相關文章
相關標籤/搜索