Linux id-dci-web1412.main-hosting.eu 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
LiteSpeed
: 2a02:4780:6:1512:0:19fc:adf1:2 | : 216.73.216.85
Cant Read [ /etc/named.conf ]
8.1.34
u435990001
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
go /
pkg /
mod /
github.com /
gogo /
protobuf@v1.3.2 /
[ HOME SHELL ]
Name
Size
Permission
Action
.github
[ DIR ]
dr-xr-xr-x
codec
[ DIR ]
dr-xr-xr-x
conformance
[ DIR ]
dr-xr-xr-x
gogoproto
[ DIR ]
dr-xr-xr-x
gogoreplace
[ DIR ]
dr-xr-xr-x
io
[ DIR ]
dr-xr-xr-x
jsonpb
[ DIR ]
dr-xr-xr-x
plugin
[ DIR ]
dr-xr-xr-x
proto
[ DIR ]
dr-xr-xr-x
protobuf
[ DIR ]
dr-xr-xr-x
protoc-gen-combo
[ DIR ]
dr-xr-xr-x
protoc-gen-gofast
[ DIR ]
dr-xr-xr-x
protoc-gen-gogo
[ DIR ]
dr-xr-xr-x
protoc-gen-gogofast
[ DIR ]
dr-xr-xr-x
protoc-gen-gogofaster
[ DIR ]
dr-xr-xr-x
protoc-gen-gogoslick
[ DIR ]
dr-xr-xr-x
protoc-gen-gogotypes
[ DIR ]
dr-xr-xr-x
protoc-gen-gostring
[ DIR ]
dr-xr-xr-x
protoc-min-version
[ DIR ]
dr-xr-xr-x
sortkeys
[ DIR ]
dr-xr-xr-x
test
[ DIR ]
dr-xr-xr-x
types
[ DIR ]
dr-xr-xr-x
vanity
[ DIR ]
dr-xr-xr-x
version
[ DIR ]
dr-xr-xr-x
.gitignore
95
B
-r--r--r--
.mailmap
551
B
-r--r--r--
.travis.yml
511
B
-r--r--r--
AUTHORS
562
B
-r--r--r--
CONTRIBUTORS
845
B
-r--r--r--
GOLANG_CONTRIBUTORS
218
B
-r--r--r--
LICENSE
1.64
KB
-r--r--r--
Makefile
5.97
KB
-r--r--r--
README
11.94
KB
-r--r--r--
Readme.md
11.79
KB
-r--r--r--
bench.md
15.03
KB
-r--r--r--
custom_types.md
2.68
KB
-r--r--r--
extensions.md
16.64
KB
-r--r--r--
go.mod
215
B
-r--r--r--
go.sum
4.34
KB
-r--r--r--
install-protobuf.sh
633
B
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : custom_types.md
# Custom types Custom types is a gogo protobuf extensions that allows for using a custom struct type to decorate the underlying structure of the protocol message. # How to use ## Defining the protobuf message ```proto message CustomType { optional ProtoType Field = 1 [(gogoproto.customtype) = "T"]; } message ProtoType { optional string Field = 1; } ``` or alternatively you can declare the field type in the protocol message to be `bytes`: ```proto message BytesCustomType { optional bytes Field = 1 [(gogoproto.customtype) = "T"]; } ``` The downside of using `bytes` is that it makes it harder to generate protobuf code in other languages. In either case, it is the user responsibility to ensure that the custom type marshals and unmarshals to the expected wire format. That is, in the first example, gogo protobuf will not attempt to ensure that the wire format of `ProtoType` and `T` are wire compatible. ## Custom type method signatures The custom type must define the following methods with the given signatures. Assuming the custom type is called `T`: ```go func (t T) Marshal() ([]byte, error) {} func (t *T) MarshalTo(data []byte) (n int, err error) {} func (t *T) Unmarshal(data []byte) error {} func (t *T) Size() int {} func (t T) MarshalJSON() ([]byte, error) {} func (t *T) UnmarshalJSON(data []byte) error {} // only required if the compare option is set func (t T) Compare(other T) int {} // only required if the equal option is set func (t T) Equal(other T) bool {} // only required if populate option is set func NewPopulatedT(r randyThetest) *T {} ``` Check [t.go](test/t.go) for a full example # Warnings and issues `Warning about customtype: It is your responsibility to test all cases of your marshaling, unmarshaling and size methods implemented for your custom type.` Issues with customtype include: * <a href="https://github.com/gogo/protobuf/issues/199">A Bytes method is not allowed.<a/> * <a href="https://github.com/gogo/protobuf/issues/132">Defining a customtype as a fake proto message is broken.</a> * <a href="https://github.com/gogo/protobuf/issues/147">proto.Clone is broken.</a> * <a href="https://github.com/gogo/protobuf/issues/125">Using a proto message as a customtype is not allowed.</a> * <a href="https://github.com/gogo/protobuf/issues/200">cusomtype of type map can not UnmarshalText</a> * <a href="https://github.com/gogo/protobuf/issues/201">customtype of type struct cannot jsonpb unmarshal</a> * <a href="https://github.com/gogo/protobuf/issues/477">Customtype field does not get a generated 'getter' method</a> * <a href="https://github.com/gogo/protobuf/issues/478">Repeated customtype fields generate slices without pointer to the custom type </a>
Close