MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / setUnquotedString

Function setUnquotedString

configuration/configuration.go:395–403  ·  view source on GitHub ↗
(s *string, key string, value string)

Source from the content-addressed store, hash-verified

393}
394
395func setUnquotedString(s *string, key string, value string) {
396 unquotedValue, err := strconv.Unquote(value)
397 if err != nil {
398 say.Warning("Could not set key from configuration file because value is not parseable (" + key + "=" + value + ")")
399 return
400 }
401 *s = unquotedValue
402 say.Debug("Overwriting " + key + " =" + unquotedValue)
403}
404
405func setBoolean(s *bool, key string, value string) {
406 boolValue, err := strconv.ParseBool(value)

Callers 2

parseUserConfigurationFunction · 0.85

Calls 2

WarningFunction · 0.92
DebugFunction · 0.92

Tested by

no test coverage detected