MustRegisterSubsection
Registers a new subsection with the given name and configuration. This function will panic if the registration fails.
def MustRegisterSubsection(
name: string,
cfg: config.Config
) - > config.Section
Registers a new configuration subsection with the given name and configuration. This function will panic if the registration fails.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The unique identifier for the subsection being registered. |
| cfg | config.Config | The configuration object to associate with the new subsection. |
Returns
| Type | Description |
|---|---|
config.Section | The newly registered configuration section. |