Method
AddString
(target *string,
default_value string,
section string,
key string,
descr_short string,
descr_long string)
Source from the content-addressed store, hash-verified
| 82 | } |
| 83 | |
| 84 | func (this *Config_store) AddString(target *string, |
| 85 | default_value string, |
| 86 | section string, |
| 87 | key string, |
| 88 | descr_short string, |
| 89 | descr_long string) { |
| 90 | |
| 91 | *target = default_value |
| 92 | new_val := &Config_value{Conf_type: "string"} |
| 93 | new_val.Conf_str = &Config_value_string{target, default_value, section, key, descr_short, descr_long} |
| 94 | |
| 95 | this.Store = append(this.Store, new_val) |
| 96 | } |
| 97 | |
| 98 | func (this *Config_store) AddInt(target *int, |
| 99 | default_value int, |
Tested by
no test coverage detected