Files
nats.go/encoders
Ivan Kozlovic a3c423655e Fixed deprecated protobuf import reported by staticcheck
"encoders/protobuf/protobuf_enc.go:19:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead."

I have replaced and regenerated the testdata protobuf code.

I have tested that if an app was built with the library before
the change and would receive a message generated with the updated
import it would work fine.
However an app using the updated library would need to replace

```
reflect.DeepEqual(m1, m2)
```
with
```
reflect.DeepEqual(m1.ProtoReflect(), m2.ProtoReflect())
```
The protobuf Message has different versions now.
Not sure if this going to break things or not, but the
github.com/golang/protobuf/proto is clearly marked as deprecated.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-04-24 16:36:12 -06:00
..
2018-03-17 13:36:48 -07:00