go-room-rate-calculator

module
v0.0.0-...-5f2bb2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: MIT

README

go-room-rate-calculator

sample project to learn golang

  • Calculate a hotel's room rates
  • Inputs: Date, Zip Code
  • Services:
    • Base Room rate for zip code: Read from Database
    • Discount rate based on month - calculated
    • Public Holiday adjustment - call a service
    • Tax rate service - based on Zip code: Maybe DB maybe DynamoDB
  • http endpoints
  • grpc endpoints

Software

* Gin for REST APIs
* Zap for structured logging
* Testify - assertions and mocks
* Wire for dependency injection
* GRPC + Protobufs

Directories

Path Synopsis
Package ratecalculation is a generated GoMock package.
Package ratecalculation is a generated GoMock package.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL