1 Star 0 Fork 1

cx/protoc-gen-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
proto_methods.go 512 Bytes
一键复制 编辑 原始数据 按行查看 历史
cw290746987 提交于 2021-06-01 11:10 +08:00 . 1
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The protoreflect build tag disables use of fast-path methods.
// +build !protoreflect
package proto
import (
"gitee.com/290746987/protoc-gen-go/reflect/protoreflect"
"gitee.com/290746987/protoc-gen-go/runtime/protoiface"
)
const hasProtoMethods = true
func protoMethods(m protoreflect.Message) *protoiface.Methods {
return m.ProtoMethods()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/290746987/protoc-gen-go.git
git@gitee.com:290746987/protoc-gen-go.git
290746987
protoc-gen-go
protoc-gen-go
v1.0.0

搜索帮助