MCPcopy
hub / github.com/redis/go-redis / omitEmpty

Function omitEmpty

commands.go:138–147  ·  view source on GitHub ↗
(opt string)

Source from the content-addressed store, hash-verified

136}
137
138func omitEmpty(opt string) bool {
139 for opt != "" {
140 var name string
141 name, opt, _ = strings.Cut(opt, ",")
142 if name == "omitempty" {
143 return true
144 }
145 }
146 return false
147}
148
149func isEmptyValue(v reflect.Value) bool {
150 switch v.Kind() {

Callers 1

appendStructFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected