Golang archive/zip.FileInfoHeader() function usage example
package archive/zip
FileInfoHeader creates a partially-populated FileHeader from an os.FileInfo. Because os.FileInfo's Name method returns only the base name of the file it describes, it may be necessary to modify the Name field of the returned header to provide the full path name of the file.
zip.FileInfoHeader() function usage example
fileInfo := file.Stat()
header := zip.FileInfoHeader(fileInfo)
Advertisement
Something interesting
Tutorials
+18.8k Golang : Delete duplicate items from a slice/array
+15.8k Golang : How to login and logout with JWT example
+3.4k Golang : Fix go-cron set time not working issue
+7.5k Golang : Create zip/ePub file without compression(use Store algorithm)
+11.3k Golang : Intercept and process UNIX signals example
+5.3k Javascript : Shuffle or randomize array example
+12.2k Linux : How to install driver for 600Mbps Dual Band Wifi USB Adapter
+14.4k Golang : Parsing or breaking down URL
+23.1k Golang : Randomly pick an item from a slice/array example
+7.5k Golang : Detect sample rate, channels or latency with PortAudio
+6.1k Golang : Dealing with backquote
+26.1k Mac/Linux and Golang : Fix bind: address already in use error