MCPcopy Create free account
hub / github.com/MG-RAST/Shock / AddString

Method AddString

shock-server/conf/conf_store.go:84–96  ·  view source on GitHub ↗
(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
84func (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
98func (this *Config_store) AddInt(target *int,
99 default_value int,

Callers 1

getConfigurationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected