Speed Go
Speed Go is a Visual Studio Code extension that helps you quickly generate boilerplate code for your Go APIs.
Features
- Generate boilerplate code for your Go APIs
- Supports generating code for the following HTTP methods: GET, POST, PUT, DELETE, PATCH
- Supports generating code for the following database operations: SELECT, INSERT, UPDATE, DELETE
- Supports generating code for the following data structures: structs, interfaces, enums
- Supports generating code for the following dependencies: Gin, Gorm, SQLC
Usage
- Right click on internal folder and you'll see option sGo : Create API , click on that
- Select the HTTP method you want to generate code for.
- Enter the name of the endpoint you want to generate
- Select the database table name operation you want to generate code for.
Configuration
You can configure the extension by creating a speedgo.json file in your workspace root. The file should contain the following JSON object:
| |