{"id":24201564,"url":"https://github.com/kashifkhan0771/go-weather","last_synced_at":"2026-01-30T21:02:54.184Z","repository":{"id":235206928,"uuid":"790276803","full_name":"kashifkhan0771/go-weather","owner":"kashifkhan0771","description":"Weather API Client","archived":false,"fork":false,"pushed_at":"2024-12-10T15:14:52.000Z","size":24,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T23:03:02.045Z","etag":null,"topics":["api-client","api-client-go","go","go-client","golang","http-api","weather-api","weatherapi-com"],"latest_commit_sha":null,"homepage":"https://www.weatherapi.com/docs/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kashifkhan0771.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-22T15:31:52.000Z","updated_at":"2024-12-10T15:22:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"353efacc-f053-42ba-8429-cf41d34ef05f","html_url":"https://github.com/kashifkhan0771/go-weather","commit_stats":null,"previous_names":["kashifkhan0771/go-weather"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kashifkhan0771/go-weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashifkhan0771%2Fgo-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashifkhan0771%2Fgo-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashifkhan0771%2Fgo-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashifkhan0771%2Fgo-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kashifkhan0771","download_url":"https://codeload.github.com/kashifkhan0771/go-weather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashifkhan0771%2Fgo-weather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28919362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","api-client-go","go","go-client","golang","http-api","weather-api","weatherapi-com"],"created_at":"2025-01-13T21:16:22.304Z","updated_at":"2026-01-30T21:02:54.161Z","avatar_url":"https://github.com/kashifkhan0771.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go API Weather\n\n[![Go Version](https://img.shields.io/github/go-mod/go-version/kashifkhan0771/go-weather)](https://golang.org/)\n[![License](https://img.shields.io/github/license/kashifkhan0771/go-weather)](LICENSE)\n\nGo-Weather is a simple and efficient Go library for fetching weather information from [WeatherAPI](https://www.weatherapi.com). This library allows developers to seamlessly integrate weather data into their applications.\n\n## Features\n- Fetch current weather for any location.\n- Retrieve forecast data for up to 7 days.\n- Supports WeatherAPI integration for reliable weather data.\n- Lightweight\n\n## Installation\nIn order to use Go-Weather, you need to have Go installed on your system. The library requires Go version 1.22.0 or higher.\n\n```shell\ngo get github.com/kashifkhan0771/go-weather\n```\n\n## Usage\nImport the library in your Go application:\n\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/kashifkhan0771/go-weather\"\n)\n\nfunc main() {\n    client := weather.NewClient(\"YOUR_API_KEY\")\n    currentWeather, err := client.GetCurrentWeather(\"London\")\n    if err != nil {\n        fmt.Println(\"Error fetching weather:\", err)\n        return\n    }\n\n    fmt.Printf(\"Current temperature in London: %f°C\\n\", currentWeather.Temperature)\n}\n```\n\n## Configuration\nSet up your client with the API key provided by the weather service:\n\n```go\nclient := weather.NewClient(\"YOUR_API_KEY\")\n```\n\n### Advanced Congiguration\nConfigure the client with additional options (if available):\n\n```go\nclient := weather.NewClient(\n    \"YOUR_API_KEY\",\n    weather.WithTimeout(10*time.Second),\n)\n```\n\n## Supported Functions\n\n### GetCurrentWeather\n\n```go\nfunc GetCurrentWeather(location string) (*Weather, error)\n```\n\nFetches current weather for a given location.\n\nParameters:\n- `location`: City name, postal code, or coordinates\n\nReturns:\n- `*Weather`: Weather information including temperature, conditions, etc.\n- `error`: API errors, network issues, or invalid location\n\n### GetForecast\n\n```go\nfunc GetForecast(location string, days int) (*Forecast, error)\n```\n\nRetrieves weather forecast for specified days.\n\nParameters:\n- `location`: City name, postal code, or coordinates\n- `days`: Number of days (1-7)\n\nReturns:\n- `*Forecast`: Forecast information for requested days\n- `error`: API errors, network issues, or invalid parameters\n\n## Examples\nDetailed usage examples for each function are provided in the [EXAMPLES.md](EXAMPLES.md) file.\n\n\n## Contributing\nContributions are welcome! Please follow the steps below:\n\n- Fork the repository.\n- Create a feature branch: git checkout -b feature-name.\n- Commit your changes: git commit -m 'Add new feature'.\n- Push to your branch: git push origin feature-name.\n- Open a pull request.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/kashifkhan0771/go-weather/blob/main/LICENSE) file for details.\n\n## Acknowledgments\nThanks to WeatherAPI for data integration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashifkhan0771%2Fgo-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkashifkhan0771%2Fgo-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashifkhan0771%2Fgo-weather/lists"}