Golang archive/zip.ReadCloser.Close() function usage example
package archive/zip
Close closes the Zip file, rendering it unusable for I/O.
zip.ReadCloser.Close() usage example
read, err := zip.OpenReader(“files.zip”)
if err != nil {
fmt.Println(err)
}
defer read.Close() // close the ReadCloser
Advertisement
Something interesting
Tutorials
+9.4k Golang : Play .WAV file from command line
+9.7k Golang : List available AWS regions
+10.9k Golang : Removes punctuation or defined delimiter from the user's input
+13.6k Golang : Qt progress dialog example
+4.9k HTTP common errors and their meaning explained
+36.7k Golang : Display float in 2 decimal points and rounding up or down
+35.1k Golang : Upload and download file to/from AWS S3
+13.9k Golang : convert(cast) string to float value
+11.9k Golang : Convert decimal number(integer) to IPv4 address
+12.4k Golang : Extract part of string with regular expression
+4.3k Javascript : How to show different content with noscript?
+9.4k Golang : Scramble and unscramble text message by randomly replacing words