Create an HTTP client in Go that consumes the datetime server APIs implemented in the previous project https://github.com/codescalersinternships/home/issues/144 . This client will focus on building an HTTP client development and testing.
Requirements:
Client Functionality:
[x] Implement functions to call each datetime server endpoint
[x] Handle different response formats (JSON, plain text)
[x] Implement proper error handling and timeouts
Configuration:
[x] Allow configuration of server URLs and ports
[x] Support for environment variable configuration
[x] Provide godoc-style comments for all exported functions
[x] Include usage examples in the README
Logging:
[x] Implement structured logging for client operations
Optional Enhancements:
Implement a simple CLI interface for the client
Acceptance Criteria:
All tests pass and provide good coverage
Documentation clearly explains usage and testing procedures
After this one You can develop the one for pokeapi
Develop and Test HTTP Client for Datetime Server https://github.com/codescalersinternships/home/issues/144**
Description:
Create an HTTP client in Go that consumes the datetime server APIs implemented in the previous project https://github.com/codescalersinternships/home/issues/144 . This client will focus on building an HTTP client development and testing.
Requirements:
Client Functionality:
Configuration:
Retry mechanism
Testing:
Documentation:
Logging:
Optional Enhancements:
Implement a simple CLI interface for the client Acceptance Criteria: All tests pass and provide good coverage Documentation clearly explains usage and testing procedures After this one You can develop the one for pokeapi