func (config *Config) SectionNames() []string {
	sectionNames := make([]string, 0, len(config.sections))
	for name := range config.sections {
		sectionNames = append(sectionNames, name)
	}

	if len(config.name) > 0 {
		sectionNames = append(sectionNames, config.name)
	}

	sort.Strings(sectionNames)

	return sectionNames
}
func (config *Config) SectionNames() []string {
	sectionNames := make([]string, 0, len(config.sections))
	for name := range config.sections {
		sectionNames = append(sectionNames, name)
	}

	if len(config.name) > 0 {
		sectionNames = append(sectionNames, config.name)
	}

	sort.Strings(sectionNames)

	return sectionNames
}
func ( config * Config ) SectionNames ( ) [ ] string { sectionNames := make ( [ ] string , 0 , len ( config . sections ) ) for name := range config . sections { sectionNames = append ( sectionNames , name ) } if len ( config . name ) > 0 { sectionNames = append ( sectionNames , config . name ) } sort . Strings ( sectionNames ) return sectionNames }
/*
SectionNames returns the names for each of the sections in a config structure. If the config was assigned
a name, that name is included in the list. If the name is not set, then only explicitely named sections are returned.
*/
/ * SectionNames returns the names for each of the sections in a config structure . If the config was assigned a name that name is included in the list . If the name is not set then only explicitely named sections are returned .