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
+11.6k SSL : The certificate is not trusted because no issuer chain was provided
+14.6k Golang : GUI with Qt and OpenCV to capture image from camera
+5.7k Golang : Struct field tags and what is their purpose?
+14.5k Golang : Find network of an IP address
+21.6k Golang : Encrypt and decrypt data with TripleDES
+11k How to test Facebook App on localhost ?
+41.9k Golang : How do I convert int to uint8?
+21.1k Golang : For loop continue,break and range
+10.4k Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter
+7.5k Golang : How to handle file size larger than available memory panic issue
+5.2k Golang : Experimental Jawi programming language
+9.4k Golang : Timeout example