Documentation ¶
Overview ¶
Package main implements an config.Encoder and config.Decoder for an XML representation of config.Variable.
For the following input:
config.Variables{ &config.Variable{ Key: "HOME", Value: "C:\Users\Gopher", }, &config.Variable{ Key: "USERNAME", Value: "Gopher", }, }
The config.Encoder will output:
<Config> <Variable key="HOME">C:\Users\Gopher</Variable> <Variable key="USERNAME">Gopher</Variable> </Config>
Click to show internal directories.
Click to hide internal directories.