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
+10k Golang : Setting variable value with ldflags
+8.6k Golang : Progress bar with ∎ character
+34.6k Golang : How to stream file to client(browser) or write to http.ResponseWriter?
+18.8k Golang : Delete duplicate items from a slice/array
+19.6k Golang : Close channel after ticker stopped example
+10k Golang : Convert octal value to string to deal with leading zero problem
+18.2k Golang : Get command line arguments
+16.3k Golang :Trim white spaces from a string
+6.1k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)
+24.6k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+5.4k Gogland : Datasource explorer
+5.3k PHP : Hide PHP version information from curl