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
+16.1k Golang : How to check if input from os.Args is integer?
+20.7k Android Studio : AlertDialog and EditText to get user string input example
+17.5k Golang : Linked list example
+25.7k Golang : missing Mercurial command
+17.4k Golang : Check if IP address is version 4 or 6
+6.5k Elasticsearch : Shutdown a local node
+6.9k Golang : Decode XML data from RSS feed
+11.3k Golang : Intercept and process UNIX signals example
+17.6k Convert JSON to CSV in Golang
+29.5k Golang : How to create new XML file ?
+25.2k Golang : Storing cookies in http.CookieJar example
+11.4k Golang : Delay or limit HTTP requests example