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
+16.5k Golang : Execute terminal command to remote machine example
+16.3k Golang :Trim white spaces from a string
+46.5k Golang : Marshal and unmarshal json.RawMessage struct example
+24k Golang : Call function from another package
+32.5k Golang : Copy directory - including sub-directories and files
+7k Golang : Gargish-English language translator
+14.4k Golang : How to convert a number to words
+5.4k Golang *File points to a file or directory ?
+11.9k Golang : How to parse plain email text and process email header?
+21.2k Golang : Clean up null characters from input data
+15.2k Golang : Get HTTP protocol version example
+7.5k Golang : Rename part of filename