wpb

command
v0.0.0-...-64c43b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

#+startup: content
#+title: wpb插件文档
* wpb文档
** 环境变量
| 变量               | 默认值                                     | 解释                                        |
|--------------------+--------------------------------------------+---------------------------------------------|
| GOPB_WIRE_PACKAGE  | github.com/walleframe/walle/util/protowire | 序列化代码使用的包,默认是从protobuf库复制的 |
| GOPB_GEN_GET       | false                                      | 默认不生成get接口                           |
| GOPB_GEN_ZAP       | true                                       | 默认生成zap日志接口                         |
| GOPB_GEN_EMPTY_MSG | false                                      | 默认不生成空消息和空枚举类型                |
** 兼容性
*** 不支持 oneof
*** map 类型不支持设置 signed/fixed
*** zap 打印二进制会先base64编码
** 使用方式
在字段选项上支持以下option.
| option       | value      | 影响类型                   |
|--------------+------------+----------------------------|
| proto.packed | true/false | array                      |
| proto.fixed  | true/false | int32,int64,uint32,uint64, |
| proto.signed | true/false | int32,int64,uint32,uint64, |

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package strs provides string manipulation functionality specific to protobuf.
Package strs provides string manipulation functionality specific to protobuf.
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL