Skip to content

codescratchers/golang-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-golang-rest-webserver

Covering the best practices of golang.

Libraries

  1. Go 1.22.4
  2. go-sql-driver/mysql.
  3. DATA-DOG/go-sqlmock for testing.

Features

  1. CRUD operations using standard MySQL library.
  2. Webserver using standard HTTP Server, Handler.
  3. Database rollback and commit.
  4. Integration, Unit and Data Access Layer tests.

Folder Structure

  • transaction.go has been moved and renamed to utils.go Alt text

Entity relationship

User 1 to many with Role.

About

Repo to see if I am following Golang best practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages