func WriteFileToPackage ¶
WriteFileToPackage writes a file to a tar stream.
func WriteFolderToTarPackage ¶
WriteFolderToTarPackage writes source files to a tarball. This utility is used for node js chaincode packaging, but not golang chaincode. Golang chaincode has more sophisticated file packaging, as implemented in golang/platform.go.