Thing Configuration is done through the Thing.Cfg structure. A newly created Thing has a default config, but config settings can be modified after creation but before running. Here we set the model and name of Thing and enable Basic HTTP Authentication for user "merle".
See ThingConfig structure for full list of Thing configuration settings. The defaults for most settings are sufficient for most use cases.
For flexibility, using Go's flag package let's us expose Thing configuration settings to user via command line parameters.
You can also expose Thinger config settings using flags: