MCPcopy Create free account
hub / github.com/barnybug/cli53 / GetString

Method GetString

util.go:422–428  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

420}
421
422func (kvs KeyValues) GetString(key string) string {
423 val := kvs.GetOptString(key)
424 if val != nil {
425 return *val
426 }
427 return ""
428}
429
430func (kvs KeyValues) GetInt(key string) int {
431 for i := 0; i < len(kvs); i += 2 {

Callers 3

ParseMethod · 0.80
ParseMethod · 0.80
parseCommentFunction · 0.80

Calls 1

GetOptStringMethod · 0.95

Tested by

no test coverage detected