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

Function get_my_config_string

shock-server/conf/conf_store.go:191–198  ·  view source on GitHub ↗
(c *config.Config, f *flag.FlagSet, val *Config_value_string)

Source from the content-addressed store, hash-verified

189}
190
191func get_my_config_string(c *config.Config, f *flag.FlagSet, val *Config_value_string) {
192 //overwrite variable if defined in config file
193 if c != nil {
194 getDefinedValueString(c, val.Section, val.Key, val.Target)
195 }
196 //overwrite variable if defined on command line (default values are overwritten by config file)
197 f.StringVar(val.Target, val.Key, *val.Target, val.Descr_short)
198}
199
200func get_my_config_int(c *config.Config, f *flag.FlagSet, val *Config_value_int) {
201 //overwrite variable if defined in config file

Callers 1

ParseMethod · 0.85

Calls 1

getDefinedValueStringFunction · 0.85

Tested by

no test coverage detected