Go JSON config file

Seems there’s no standard or official way to load configuration files in Go. There are libraries out there, but if you’re just looking for something simple, you’d just read a JSON file into your application. config/configuration.go config/email.go conf.json main.go

.NET Configuration

Configuration in .NET Core and later is mostly unstructured, letting you build your configuration JSON file the way you want it. The standard approach tends to be an appsettings.json file. From there, you can define your configuration any way you want – simple key-value pairs, complex objects, arrays, whatever you need. View code on GitHub