MCPcopy Create free account
hub / github.com/gookit/config / String

Function String

read.go:257–257  ·  view source on GitHub ↗

************************************************************* * read config (basic data type) *************************************************************/ String get a string by key

(key string, defVal ...string)

Source from the content-addressed store, hash-verified

255
256// String get a string by key
257func String(key string, defVal ...string) string { return dc.String(key, defVal...) }
258
259// String get a string by key, if not found return default value
260func (c *Config) String(key string, defVal ...string) string {

Callers 6

ExampleFunction · 0.85
TestLoadOSEnvFunction · 0.85
TestLoadOSEnvsFunction · 0.85
TestGetFunction · 0.85
TestStringFunction · 0.85
TestSetFunction · 0.85

Calls 1

StringMethod · 0.80

Tested by 6

ExampleFunction · 0.68
TestLoadOSEnvFunction · 0.68
TestLoadOSEnvsFunction · 0.68
TestGetFunction · 0.68
TestStringFunction · 0.68
TestSetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…