MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / valueAsString

Function valueAsString

internal/store/postgresstore.go:644–653  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

642}
643
644func valueAsString(v any) string {
645 switch t := v.(type) {
646 case string:
647 return t
648 case fmt.Stringer:
649 return t.String()
650 default:
651 return ""
652 }
653}
654
655func labelFor(metadata map[string]any) string {
656 if metadata == nil {

Callers 3

ListMethod · 0.70
labelForFunction · 0.70
readAuthFileMethod · 0.70

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected