util

package
v0.0.0-...-71fdcac Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOutputFilenameBase

func GenerateOutputFilenameBase(proto *descriptorpb.FileDescriptorProto) string

func IsIgnoredPackage

func IsIgnoredPackage(s string) bool

func IsSystemLibrary

func IsSystemLibrary(s string) bool

func LocatorNames

func LocatorNames(param string) []string

func MarshalResponseAndExit

func MarshalResponseAndExit(message proto.Message)

func OutputTerminal

func OutputTerminal(output []*OutputFile)

func ReadStdinIntoBuffer

func ReadStdinIntoBuffer(reader io.Reader, saveTemp bool, tmpDir string, protocVerbose bool) *pluginpb.CodeGeneratorRequest

Types

type OutputFile

type OutputFile struct {
	// contains filtered or unexported fields
}

func NewOutputFile

func NewOutputFile(name string) *OutputFile

func (*OutputFile) Close

func (o *OutputFile) Close() error

func (*OutputFile) Printf

func (o *OutputFile) Printf(spec string, args ...interface{})

func (*OutputFile) ToGoogleCGResponseFile

func (o *OutputFile) ToGoogleCGResponseFile() *pluginpb.CodeGeneratorResponse_File

func (*OutputFile) Write

func (o *OutputFile) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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