Versions in this module Expand all Collapse all v0 v0.2.0 Oct 9, 2026 Changes in this version type WIM + func (w *WIM) AddEmptyImage(name string) (int, error) v0.1.0 Aug 27, 2026 Changes in this version + func Available() bool + func DecompressDCS(data []byte) ([]byte, error) + func IsDCS(data []byte) bool + type Compression int + const LZMS + const LZX + const None + type Decompressor struct + func NewDecompressor(ctype Compression, maxBlockSize int) (*Decompressor, error) + func (d *Decompressor) Close() + func (d *Decompressor) Decompress(compressed []byte, uncompressedSize int) ([]byte, error) + type ProgressFunc func(percentDone int) + type WIM struct + func CreateWIM(compression Compression) (*WIM, error) + func OpenWIM(path string) (*WIM, error) + func (w *WIM) Close() + func (w *WIM) ExportImage(imageNum int, dest *WIM, compression Compression) error + func (w *WIM) ExtractImage(imageNum int, targetDir string, onProgress ProgressFunc) error + func (w *WIM) ExtractPaths(imageNum int, targetDir string, wimPaths []string) error + func (w *WIM) ImageCount() (int, error) + func (w *WIM) ImageDescription(imageNum int) (string, error) + func (w *WIM) ListChildren(imageNum int, wimDirPath string) ([]string, error) + func (w *WIM) Overwrite() error + func (w *WIM) ReferenceResourceFilePaths(paths []string) error + func (w *WIM) ReferenceResourceFiles(globs []string) error + func (w *WIM) SetBootImage(imageNum int) error + func (w *WIM) SetImageName(imageNum int, name, description string) error + func (w *WIM) SetImageProperty(imageNum int, propertyName, propertyValue string) error + func (w *WIM) UpdateImageAdd(imageNum int, fsSourcePath, wimTargetPath string) error + func (w *WIM) UpdateImageAddTree(imageNum int, fsRootDir, wimRootDir string) error + func (w *WIM) UpdateImageDelete(imageNum int, wimPath string) error + func (w *WIM) Write(path string) error