xprotoutil

package
v0.0.0-...-5182803 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoPackageName

func GoPackageName(f *descriptor.FileDescriptorProto) (name string, explicit bool)

goPackageName returns the Go package name to use in the generated Go file. The result explicitly reports whether the name came from an option go_package statement. If explicit is false, the name was derived from the protocol buffer's package statement or the input file name.

func GoPackageOption

func GoPackageOption(f *descriptor.FileDescriptorProto) (impPath, pkg string, ok bool)

goPackageOption interprets the file's go_package option. If there is no go_package, it returns ("", "", false). If there's a simple name, it returns ("", pkg, true). If the option implies an import path, it returns (impPath, pkg, true).

Types

This section is empty.

Jump to

Keyboard shortcuts

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