go-goose

Generate Go server and client code from protobuf definitions with HTTP annotations.

10|1|Updated Sep 22, 2022
One-click install
npx skills add https://github.com/soyacen/goose --skill go-goose-soyacen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-goose
Source: https://github.com/soyacen/goose/tree/main/skills/go-goose
Command: npx skills add https://github.com/soyacen/goose --skill go-goose-soyacen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill enables developers to create scalable, protocol buffer-based HTTP APIs effortlessly.

Core Features & Use Cases

  • Protobuf-Based API Generation: Converts proto definitions into fully functional Go server and client code.
  • Support for REST Mappings: Supports path parameters, query strings, and request bodies aligned with Google API annotations.
  • Use Case: Build an API for user management with create, retrieve, update, and delete operations that automatically map to REST endpoints.

Quick Start

Use the goose skill to generate server and client code from your proto files and implement REST API endpoints.

Frequently Asked Questions about go-goose

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Go HTTP REST services from proto files?

To generate Go HTTP REST services from proto files, you define protobuf services using Google API annotations for path, query, and body parameters, which this Skill uses to produce fully functional Go server and client code automatically.

What is the best way to map gRPC methods to RESTful API endpoints in Go?

Mapping gRPC methods to RESTful API endpoints in Go is best handled by defining your protobuf services with HTTP annotations, allowing you to align path parameters, query strings, and request bodies directly with standard REST operations.

Can I use protobuf HTTP annotations for query strings and request bodies in Go code generation?

Yes, you can use protobuf HTTP annotations for query strings and request bodies in Go code generation, as this Skill specifically supports mapping these REST parameters directly from your proto definitions into the generated server and client code.

How do I build a CRUD REST API from a protobuf definition in Go?

To build a CRUD REST API from a protobuf definition in Go, you define user management operations with create, retrieve, update, and delete actions in your proto file, and the Skill maps them to corresponding RESTful endpoints automatically.

Does generating Go server and client code from proto files require manual REST endpoint routing?

Generating Go server and client code from proto files does not require manual REST endpoint routing, because the Skill automatically handles the routing logic by interpreting the HTTP annotations defined within your protobuf service files.