directory
Version:
v0.0.0-...-2865eeb
Opens a new window with list of versions in this module.
Published: Apr 18, 2019
License: MIT
Opens a new window with license information.
README
¶
Initialize protobuf types
To use the protobuf types, they have to be linked to the /usr/local/include
folder, in the same way like Google's protobuf well-known-types.
foo@bar:~$ mkdir /usr/local/include/dkfbasel
foo@bar:~$ ln -s $GOPATH/src/github.com/dkfbasel/protobuf/types /usr/local/include/dkfbasel/protobuf
Now the protobuf types can be imported into your proto definition file.
syntax = "proto3";
package startrek;
import "dkfbasel/protobuf/timestamp.proto";
import "dkfbasel/protobuf/nullstring.proto";
import "dkfbasel/protobuf/nullint.proto";
message StarfleetShip {
string name = 1;
dkfbasel.protobuf.NullInt passengers = 2;
dkfbasel.protobuf.NullString mission = 3;
dkfbasel.protobuf.Timestamp departure_time = 4;
}
Directories
¶
Package empty is a generated protocol buffer package.
|
Package empty is a generated protocol buffer package. |
Package nulldate is a generated protocol buffer package.
|
Package nulldate is a generated protocol buffer package. |
Package nullint is a generated protocol buffer package.
|
Package nullint is a generated protocol buffer package. |
Package nullstring is a generated protocol buffer package.
|
Package nullstring is a generated protocol buffer package. |
Package timestamp is a generated protocol buffer package.
|
Package timestamp is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.