{"id":31155945,"url":"https://github.com/asbdaryaee/f-api-golang-example","last_synced_at":"2025-09-18T20:22:58.700Z","repository":{"id":314074191,"uuid":"1054040695","full_name":"AsbDaryaee/f-api-golang-example","owner":"AsbDaryaee","description":"This example demonstrates how to interact with the Facts API using Go. 🚀","archived":false,"fork":false,"pushed_at":"2025-09-10T09:37:13.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T13:08:15.376Z","etag":null,"topics":["facts-api","free-api","go","golang","trivia-api"],"latest_commit_sha":null,"homepage":"https://f-api.ir","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AsbDaryaee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-10T09:30:16.000Z","updated_at":"2025-09-10T09:43:01.000Z","dependencies_parsed_at":"2025-09-10T13:08:38.481Z","dependency_job_id":"4ecae3e5-618a-49a7-a2cd-4b232f6c24db","html_url":"https://github.com/AsbDaryaee/f-api-golang-example","commit_stats":null,"previous_names":["asbdaryaee/f-api-golang-example"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AsbDaryaee/f-api-golang-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsbDaryaee%2Ff-api-golang-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsbDaryaee%2Ff-api-golang-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsbDaryaee%2Ff-api-golang-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsbDaryaee%2Ff-api-golang-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AsbDaryaee","download_url":"https://codeload.github.com/AsbDaryaee/f-api-golang-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsbDaryaee%2Ff-api-golang-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275828729,"owners_count":25536187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["facts-api","free-api","go","golang","trivia-api"],"created_at":"2025-09-18T20:22:53.292Z","updated_at":"2025-09-18T20:22:58.688Z","avatar_url":"https://github.com/AsbDaryaee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Client Example for Facts API\n\nThis example demonstrates how to interact with the [Facts API](https://github.com/AsbDaryaee/facts-api) using Go. It includes a simple function `GetARandomFact()` that makes an HTTP GET request to the `/api/facts/random` endpoint, retrieves a random fact in JSON format, and returns it as a Go struct. The example uses Go’s standard `net/http` and `io` packages, emphasizing clear, idiomatic error handling.\n\nFor a complete overview of all features, available endpoints, data formats, and advanced usage, visit the [Facts API official website](https://f-api.ir). You can use this snippet as a starting point to integrate the Facts API into your Go applications, then explore the website for additional filters, category searches, and detailed metadata support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasbdaryaee%2Ff-api-golang-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasbdaryaee%2Ff-api-golang-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasbdaryaee%2Ff-api-golang-example/lists"}