WithArchiveDefaultCompressionType sets the default compression type. Note this should never be set for zip.
(defaultCompressionType CompressionType)
| 717 | // |
| 718 | // Note this should never be set for zip. |
| 719 | func WithArchiveDefaultCompressionType(defaultCompressionType CompressionType) ArchiveFormatOption { |
| 720 | return func(archiveFormatInfo *archiveFormatInfo) { |
| 721 | archiveFormatInfo.defaultCompressionType = defaultCompressionType |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | // DirFormatOption is a dir format option. |
| 726 | type DirFormatOption func(*dirFormatInfo) |
no outgoing calls
no test coverage detected
searching dependent graphs…