{"id":18601643,"url":"https://github.com/ngalaiko/golangql","last_synced_at":"2026-04-20T13:06:10.769Z","repository":{"id":61839604,"uuid":"86914961","full_name":"ngalaiko/golangQL","owner":"ngalaiko","description":"use graphQL syntactics to select fields from json-tagged golang structs to make json api response more compact","archived":false,"fork":false,"pushed_at":"2017-06-09T08:00:14.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T23:51:47.786Z","etag":null,"topics":["cache","golang","graphql","json","tags"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngalaiko.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-01T13:23:33.000Z","updated_at":"2022-02-25T12:09:42.000Z","dependencies_parsed_at":"2022-10-22T05:00:30.817Z","dependency_job_id":null,"html_url":"https://github.com/ngalaiko/golangQL","commit_stats":null,"previous_names":["ngalayko/golangql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ngalaiko/golangQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngalaiko%2FgolangQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngalaiko%2FgolangQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngalaiko%2FgolangQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngalaiko%2FgolangQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngalaiko","download_url":"https://codeload.github.com/ngalaiko/golangQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngalaiko%2FgolangQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cache","golang","graphql","json","tags"],"created_at":"2024-11-07T02:09:03.439Z","updated_at":"2026-04-20T13:06:10.750Z","avatar_url":"https://github.com/ngalaiko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golangQL [![Build Status](https://travis-ci.org/ngalayko/golangQL.svg?branch=master)](https://travis-ci.org/ngalayko/golangQL)[![Coverage Status](https://coveralls.io/repos/github/ngalayko/golangQL/badge.svg?branch=master)](https://coveralls.io/github/ngalayko/golangQL?branch=master)[![Go Report Card](https://goreportcard.com/badge/github.com/ngalayko/golangQL)](https://goreportcard.com/report/github.com/ngalayko/golangQL)\n\ngolangQL allows you to use [graphQL](http://graphql.org/) syntactics to select fields from `json`-tagged Golang structs.\n\n## Description\n```go\nfunc Filter(v interface{}, query string) (interface{}, error)\n``` \nreturns an `interface{}` value which actually is a `map[string]interface{}`. Keys of this map are `json`-tags and values are values of struct fields. So result of `json.Marshal(v interface{})` will contain only fields that were described in `graphQL query`. Null values are skipped.\n\nSee [example](example/main.go).\n\n## Features\nAll filter functions are cached, for field structs also, so if you request \n```graphQL\n{\n  name {\n    firstName \n    lastName\n  } \n  nephews { \n    name { \n      firstName \n    } \n  hat \n} \n```\nit also will cache\n```graphQL\n{\n  nephews { \n      name { \n        firstName \n      } \n}\n```\n```graphQL\n{\n  name {\n      firstName \n      lastName\n    } \n }\n```\n```graphQL\n{\n  name { \n    firstName \n  } \n}\n```\nrequests for the relevant types.\n\n## Installation\nTo install the library, run:\n```bash\ngo get github.com/ngalayko/golangQL\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngalaiko%2Fgolangql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngalaiko%2Fgolangql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngalaiko%2Fgolangql/lists"}