protobuf
protobuf copied to clipboard
(github.com/gogo/protobuf/proto) proto.MessageName() can not work
when I import("github.com/golang/protobuf/proto"),proto.MessageName() can work correct, but when I use import("github.com/gogo/protobuf/proto"), proto.MessageName() return nil string, however my project use two proto and Vscode automatically imports is "github.com/gogo/protobuf/proto"
import (
pt "github.com/golang/protobuf/proto"
)
...
pt.MessageName("...")