MCPcopy
hub / github.com/wavetermdev/waveterm / isStringMapType

Function isStringMapType

pkg/util/dbutil/dbmappable.go:142–144  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

140}
141
142func isStringMapType(t reflect.Type) bool {
143 return t.Kind() == reflect.Map && t.Key().Kind() == reflect.String
144}
145
146func ToDBMap(v DBMappable, useBytes bool) map[string]interface{} {
147 if CheckNil(v) {

Callers 2

ToDBMapFunction · 0.85
FromDBMapFunction · 0.85

Calls 1

KeyMethod · 0.80

Tested by

no test coverage detected