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.
Click to show internal directories.
Click to hide internal directories.