Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetStringsInBytes ¶
SetStringsInBytes returns a copy of the provided bytes with the changes specified by the changes map applied. The changes map maps keys to new values. Keys are of the form <key 0>.<key 1>...<key n>. Integers may be used as keys in cases where a specific node needs to be selected from a sequence. Individual changes are ignored without error if their key is not found or if their key is found not to address a scalar node. Importantly, all comments and style choices in the input bytes are preserved in the output.
func SetStringsInFile ¶
SetStringsInFile overwrites the specified file with the changes specified by the changes map applied. The changes map maps keys to new values. Keys are of the form <key 0>.<key 1>...<key n>. Integers may be used as keys in cases where a specific node needs to be selected from a sequence. Individual changes are ignored without error if their key is not found or if their key is found not to address a scalar node. Importantly, all comments and style choices in the input bytes are preserved in the output.
Types ¶
This section is empty.