lab009

command
v0.0.0-...-f10d331 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 5 Imported by: 0

README

测试singular

proto3中,默认的Field Rules就是singular,另外的就是repeated。singualar表示可以有0个或1个这个字段,但是也不能超过1个。

注意

实验了一下,要是嵌套的字段。没有赋值的时候就是nil

运行结果

Imgur

参考资料

https://developers.google.com/protocol-buffers/docs/proto3#specifying-field-rules

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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