Categorygithub.com/Htomsik/GO-REST-API-Sample
module
0.0.0-20250130235239-bccf0ba84195
Repository: https://github.com/htomsik/go-rest-api-sample.git
Documentation: pkg.go.dev

# README

GO REST API

Just my GO playground

What can

  • Base account operation (Authorize, create, deactivate)
  • Store and process info in db
  • Have swagger (url/swagger)

All configs in configs/apiServer.toml

You need

  • GCC and CGO_ENABLED=1 (for go-sqlite3) go env -w CGO_ENABLED=1
  • Swag (for generate swagger docs)

RUN

With Make file

    Make build  #  build
    Make Start  #  build and start
    Make fullBuild # build with swaggo

Manual

    go mod tidy # if needed
    swag init -g .\cmd\apiServer\main.go # optional (swagger docs)
    go build -v ./cmd/apiServer
    ./apiServer

# Packages

No description provided by the author
Package docs Code generated by swaggo/swag.