gosal
gosal copied to clipboard
use lowercase keys in JSON config
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"`
}