Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/sanjibgirics/bank-holiday

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sanjibgirics/bank-holiday

  • v0.0.0-20231105182729-88d50cacaa50
  • Source
  • Go
  • Socket score

Version published
Created
Source

Bank Holiday Application

Fetch bank holidays data from a given url and process the data as per requirement and serve the data in different endpoints.

To build

From cmd directory execute go build -o bank-holiday

To run

./bank-holiday, if built already following above.
To build and run directly from cmd directory execute go run .

To call the APIs

go to any web browser and hit respective urls.
homepage: http://localhost:8082/
To get all bank holidays that fall within 2023 from all regions: http://localhost:8082/getHolidays2023
To get all bank holidays for the region “England and Wales" where “bunting” is false: http://localhost:8082/getHolidaysEnglandAndWalesNoBunting
To get all bank holidays title and date that fall within 2024 from all regions.: http://localhost:8082/getHolidays2024TitleAndDate

Also tools like curl, postman etc. can be used.

To run tests

While the application is running, from the root directory of the project, run go test ./test -v

Future Action Items:

  • Build, run and test through build tools like using Makefile
  • Containerization of the application using tools like Docker
  • More unit tests

FAQs

Package last updated on 05 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc