DoNotImplement can be embedded in an interface to prevent trivial implementations of the interface. This is useful to prevent unauthorized implementations of an interface so that it can be extended in the future for any protobuf language changes.
| 17 | // This is useful to prevent unauthorized implementations of an interface |
| 18 | // so that it can be extended in the future for any protobuf language changes. |
| 19 | type DoNotImplement interface{ ProtoInternal(DoNotImplement) } |
| 20 | |
| 21 | // DoNotCompare can be embedded in a struct to prevent comparability. |
| 22 | type DoNotCompare [0]func() |
nothing calls this directly
no outgoing calls
no test coverage detected