Golang archive/zip.OpenReader() function usage example
package archive/zip
OpenReader will open the Zip file specified by name and return a ReadCloser.
zip.OpenReader() usage example
read, err := zip.OpenReader(“files.zip”)
if err != nil {
fmt.Println(err)
}
defer read.Close()
See also : Golang archive/zip.ReadCloser.Close() function usage example
Advertisement
Something interesting
Tutorials
+5.8k Golang : Launching your executable inside a console under Linux
+26k Golang : Convert IP address string to long ( unsigned 32-bit integer )
+13.5k Golang : Read XML elements data with xml.CharData example
+5.9k Facebook : How to force facebook to scrape latest URL link data?
+18.4k Golang : How to remove certain lines from a file
+16.4k Golang : Send email and SMTP configuration example
+17k Golang : Fix cannot convert buffer (type *bytes.Buffer) to type string error
+31.5k Golang : bufio.NewReader.ReadLine to read file line by line
+27.4k Golang : Convert CSV data to JSON format and save to file
+18.8k Golang : Implement getters and setters
+8.9k Golang : What is the default port number for connecting to MySQL/MariaDB database ?
+7.3k Golang : How to iterate a slice without using for loop?