INNER CODE UNIT · Go

main

ysugimoto/grpc-graphql-gateway · protoc-gen-graphql/main.go:20

func main() {
	flag.Parse()
	if *printVersion {
		io.WriteString(os.Stdout, version) // nolint: errcheck
		os.Exit(0)
	}

	var genError error

	pluginSupportedFeatures := uint64(plugin.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
	resp := &plugin.CodeGeneratorResponse{
		SupportedFeatures: &pluginSupportedFeatures,
	}
	defer func() {
		// If some error has been occurred in generate process,
		// add error message to plugin response
		if genError != nil {
			message := genError.Error()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…