All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 (2025-10-02)
- improve error handling and resource cleanup in HTTP client (a427f40)
- add testing instructions and update Swagger API URL, ci fixes (d65f601)
- Migrate to github workflow, fix and refactor (95f0eaa)
- New HTTP methods:
Get(),Put(),Delete(),Patch()for full REST API support - Timeout configuration now properly applied to HTTP client
- Better logging with prefixed log messages for easier debugging
- Comprehensive error handling with nil pointer checks
- Context-aware request handling
- Better test coverage with timeout and error tests
- CRITICAL: Fixed potential nil pointer dereference in
request()method when accessing session token - CRITICAL: Fixed resource leaks - HTTP response bodies now properly closed with defer
- Fixed error handling in
createNewToken()- no longer crashes on nil response - Fixed
Validate()method to properly handle errors and close response body - Fixed
errorFormatterPx()to handle nil readers and unparseable XML gracefully - Fixed inefficient boolean returns in
Validate()method - Error messages now properly formatted with structured information
- HTTP client initialization improved with proper timeout configuration
strings.Trim()now used instead ofstrings.Replace()for token cleanup (more efficient)- Error messages now use structured format with proper error wrapping
- Log messages now include
[go-also-cloud-wrapper]prefix for clarity - Improved error handling throughout with proper error wrapping using
%w - Boolean comparisons simplified (removed redundant
== truechecks) - Test improvements: added defer for resource cleanup, better skip logic
- Reduced unnecessary buffer allocations
- Better memory management with proper defer patterns
- More efficient string operations
- Removed redundant error checks
- Initial ALSO Cloud Marketplace API wrapper
- Basic authentication with session token management
- POST request support
- Session validation
- Error handling with XML parsing
- Support for multiple marketplace regions
- Configurable options (APIPrefix, LoginEndpoint, UserAgent, Batchsize, Log)