MCPcopy Create free account
hub / github.com/brettlangdon/forge / Keys

Method Keys

section.go:215–223  ·  view source on GitHub ↗

Keys will return back a list of all setting names in this Section

()

Source from the content-addressed store, hash-verified

213
214// Keys will return back a list of all setting names in this Section
215func (section *Section) Keys() []string {
216 var keys []string
217 for key := range section.values {
218 keys = append(keys, key)
219 }
220
221 sort.Strings(keys)
222 return keys
223}
224
225// Set will set a value (Primative or Section) to the provided name
226func (section *Section) Set(name string, value Value) {

Callers 2

TestSectionKeysFunction · 0.95
MergeMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSectionKeysFunction · 0.76