Skip to content

riyaoayaw/hotel_reservation_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotel Reservation System

This is a hotel reservation system program written in Go.

Features

  • Room Management: The hotel has five rooms.
  • User Menu: Allows users to:
    • Reserve rooms
    • View room details
    • Cancel reservations
  • Concurrency Handling: Utilizes goroutines to periodically check for vacant rooms and ensure thread-safe operations.

Instructions to Run the Program

  1. Navigate to the Project Folder:

    cd path/to/your/project
  2. Initialize Dependencies:

    go mod tidy
  3. Run the Program:

    go run main.go

Testing

  1. Switch to the hotel folder inside the project:

    cd hotel
  2. To test the functionality of the program, including concurrency, use the following commands:

    go test -v
  3. For detecting race conditions in your tests, run:

    go test -race

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages