protobuf

package
v0.0.0-...-93a105f Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

README

protobuf and go

How to run

go generate github.com/yunabe/golang-codelab/misc/protobuf
go test github.com/yunabe/golang-codelab/misc/protobuf

References

Documentation

Overview

Package protobuf is a generated protocol buffer package.

It is generated from these files:

sample.proto

It has these top-level messages:

Person

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Person

type Person struct {
	Name             *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Age              *int32  `protobuf:"varint,2,opt,name=age" json:"age,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Person) Descriptor

func (*Person) Descriptor() ([]byte, []int)

func (*Person) GetAge

func (m *Person) GetAge() int32

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) String

func (m *Person) String() string

Jump to

Keyboard shortcuts

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