italia/httpclient-lib-go — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Go library that provides a shared HTTP client for tools that crawl repositories and validate publiccode.yml files.

I want it to be reusable by other Go projects, not a standalone web app. It should make HTTP requests in a consistent way, expose clear status handling, and be easy to use from a crawler, a publiccode parser, or a validator service. Please include sensible defaults, simple exported functions or types, and tests that show how to make requests and check the result status.

Keep the code clean and minimal, with normal Go project files, a README that explains what the library is for, and enough documentation so another developer can import it without guessing. If you need details about current Go best practices, look them up online.

Want more depth? Deep Reverse