json

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package json implements an encoder and decoder for a JSON representation of config.Variable.

For the following input:

[]*config.Variable{
	&config.Variable{
		Key: "HOME",
		Value: "C:\Users\Gopher",
	},
	&config.Variable{
		Key: "USERNAME",
		Value: "Gopher",
	},
}

The encoder will output:

{"HOME":"C:\\Users\\Gopher","USERNAME":"Gopher"}

Jump to

Keyboard shortcuts

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