RSSAmplifier

I'm Gilmar Soares · Oct 24, 2024

How to Document Your Go API

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Today, I’m writing a technical post about API documentation in Go. I hope you find it useful! First, we’ll create a simple CRUD API using Go and the Gin framework. Let’s get started! package main import ( 'net/http' 'strconv' 'github.com/gin-gonic/gin' ) type User struct { ID int `json:'id'` Name string `json:'name'` } var users = [] User { { ID : 1 , Name : 'John' }, { ID : 2 , Name : 'Doe' }, }…

Read on /posts/how-to-document-your-go-api/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.