mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
11 lines
337 B
Go
11 lines
337 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/gogo/protobuf/proto"
|
|
google_protobuf "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
|
|
)
|
|
|
|
// DeepcopyEnabled returns true if deepcopy is enabled for the descriptor.
|
|
func DeepcopyEnabled(options *google_protobuf.MessageOptions) bool {
|
|
return proto.GetBoolExtension(options, E_Deepcopy, true)
|
|
}
|