registryfile

package
v0.0.0-...-89d81dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package registryfile validates and semantically rewrites reg.exe documents without executing operating-system registry commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RewriteSubtree

func RewriteSubtree(data []byte, expectedRoot, replacementRoot string) ([]byte, error)

RewriteSubtree validates that every section in data is the expected HKCU root or one of its descendants, rewrites that root to replacementRoot, and returns deterministic UTF-16LE-with-BOM bytes suitable for reg import. Value lines and section order are preserved; only section roots and newline encoding are changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL