func github.com/imdario/mergo.isEmptyValue
13 uses
github.com/imdario/mergo (current package)
map.go#L61: if v, ok := dstMap[fieldName]; !ok || (isEmptyValue(reflect.ValueOf(v)) || overwrite) {
merge.go#L81: if config.Transformers != nil && !isEmptyValue(dst) {
merge.go#L127: if (isReflectNil(dst) || overwrite) && (!isEmptyValue(src) || overwriteWithEmptySrc) {
merge.go#L176: if (!isEmptyValue(src) || overwriteWithEmptySrc || overwriteSliceWithEmptySrc) && (overwrite || isEmptyValue(dst)) && !config.AppendSlice {
merge.go#L200: if overwrite || isEmptyValue(dst) {
merge.go#L213: if dst.CanSet() && (overwrite || isEmptyValue(dst)) {
merge.go#L231: if (overwrite || isEmptyValue(dst)) && (overwriteWithEmptySrc || !isEmptyValue(src)) {
merge.go#L242: overwriteFull := (!isEmptyValue(src) || overwriteWithEmptySrc) && (overwrite || isEmptyValue(dst))
mergo.go#L36: func isEmptyValue(v reflect.Value) bool {
mergo.go#L52: return isEmptyValue(v.Elem())
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |