type/encoding/cap.go

Summary

Maintainability
A
0 mins
Test Coverage
F
33%
package encoding

type Capability interface {
    MetaObjectCache() bool
    ObjectPtrUID() bool
}

type defaultCap struct{}

func (d defaultCap) MetaObjectCache() bool {
    return false
}

func (d defaultCap) ObjectPtrUID() bool {
    return false
}

func DefaultCap() Capability {
    return defaultCap{}
}