2021-10-04
1915
#go
Solomon Esenyi
69794
Oct 4, 2021 â‹… 6 min read

Documenting Go web APIs with Swag

Solomon Esenyi Python/Golang developer and Technical Writer with a passion for open-source, cryptography, and serverless technologies.

Recent posts:

profit center vs. cost center: How company structure affects engineering

Profit center vs. cost center: How company structure affects engineering

Examine the difference between profit vs. cost center organizations, and the pros and cons these bring for the engineering team.

Marie Starck
May 15, 2025 â‹… 4 min read
How to pass a TypeScript function as a parameter

How to pass a TypeScript function as a parameter

Explore how to pass functions and structured objects as parameters in TypeScript, including use cases, syntax, and practical scenarios.

Kealan Parr
May 15, 2025 â‹… 10 min read
API Docs Made Easy With Docusaurus

Create fast, modern API docs using Docusaurus

Why API documentation matters, recent trends in the space, and how to build great docs from scratch using Docusaurus, step by step.

Frank Joseph
May 15, 2025 â‹… 6 min read
A checklist for mastering Expo SDK 53

A checklist for mastering Expo SDK 53

Get up to speed on Expo SDK 53, which brings with it a wealth of new and improved updates for the React Native ecosystem.

Andrew Baisden
May 15, 2025 â‹… 17 min read
View all posts

2 Replies to "Documenting Go web APIs with Swag"

  1. Great article bro, It really helped me out trying to set up swagger for gin.

    “If your terminal does not recognize swag init when executed, you need to add the Go bin folder to PATH” – to do this run `export PATH=$(go env GOPATH)/bin:$PATH` in your terminal. Leaving this here for anyone who might need this.

Leave a Reply