安装 godoc

  1. PS D:\Projects\Go\bin> go install golang.org/x/tools/cmd/godoc@latest

image.png
D:\Projects\Go\bin
image.png

安装 swag

  1. PS D:\Projects\Go\bin> go install github.com/swaggo/swag/cmd/swag@latest

image.png
D:\Projects\Go\bin
image.png