qingcloud_plugin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

protoc-gen-go is a plugin for the Google protocol buffer compiler to generate Go code. Run it by building this program and putting it in your path with the name

protoc-gen-go

That word 'go' at the end becomes part of the option string set for the protocol compiler, so once the protocol compiler (protoc) is installed you can run

protoc --go_out=output_directory input_directory/file.proto

to generate Go bindings for the protocol defined by file.proto. With that input, the output will be written to

output_directory/file.pb.go

The generated code is documented in the package comment for the library.

See the README and documentation for protocol buffers to learn more:

https://developers.google.com/protocol-buffers/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

func RegisterServiceGenerator

func RegisterServiceGenerator(g ServiceGenerator)

Types

type ServiceGenerator

type ServiceGenerator interface {
	Name() string
	FileNameExt() string

	HeaderCode(spec *spec_metadata.FileSpec) string
	ServiceCode(spec *spec_metadata.ServiceSpec) string
}

Directories

Path Synopsis
generator

Jump to

Keyboard shortcuts

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