MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / Add

Method Add

internal/pacman/config_map.go:23–30  ·  view source on GitHub ↗
(section, key, value string)

Source from the content-addressed store, hash-verified

21}
22
23func (cm configMap) Add(section, key, value string) {
24 if _, ok := cm[section]; !ok {
25 cm[section] = make(sectionMap)
26 }
27 if _, ok := cm[section][key]; !ok {
28 cm[section][key] = value
29 }
30}
31
32func createConfigMap(lines []string) configMap {
33 cm := newConfigMap()

Callers 3

createConfigMapFunction · 0.80
SearchPackagesMethod · 0.80

Calls

no outgoing calls

Tested by 1