protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

(github.com/gogo/protobuf/proto) proto.MessageName() can not work

Open zhaobu opened this issue 4 years ago • 1 comments

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"

zhaobu avatar Aug 02 '19 02:08 zhaobu

import (
    pt "github.com/golang/protobuf/proto"
)
...
pt.MessageName("...")

jinq0123 avatar Mar 05 '20 10:03 jinq0123