gosal icon indicating copy to clipboard operation
gosal copied to clipboard

use lowercase keys in JSON config

Open groob opened this issue 6 years ago • 3 comments

Right now the config structs all use uppercase keys like URL. Management etc are all uppercase. It's customary for JSON to have lowercase keys. This can be accomplished using struct tags.

Example:

// Config is Sal client config.
type Config struct {
	Key string `json:"key"`
	URL string `json:"url"`

	Management *Management `json:"management"`

}

groob avatar Feb 05 '18 03:02 groob