{"id":16614689,"url":"https://github.com/cuonglm/gogi","last_synced_at":"2025-03-21T14:31:19.545Z","repository":{"id":48421981,"uuid":"61706053","full_name":"cuonglm/gogi","owner":"cuonglm","description":"Go client for gitignore.io","archived":false,"fork":false,"pushed_at":"2021-08-14T17:57:57.000Z","size":41,"stargazers_count":62,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T02:11:26.433Z","etag":null,"topics":["git","gitignore","go","gogi","golang","golang-library","golang-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuonglm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-06-22T09:22:32.000Z","updated_at":"2025-03-09T13:35:51.000Z","dependencies_parsed_at":"2022-08-27T08:51:42.150Z","dependency_job_id":null,"html_url":"https://github.com/cuonglm/gogi","commit_stats":null,"previous_names":["gnouc/gogi"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonglm%2Fgogi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonglm%2Fgogi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonglm%2Fgogi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonglm%2Fgogi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuonglm","download_url":"https://codeload.github.com/cuonglm/gogi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815164,"owners_count":20514906,"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","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":["git","gitignore","go","gogi","golang","golang-library","golang-tools"],"created_at":"2024-10-12T02:07:20.737Z","updated_at":"2025-03-21T14:31:19.209Z","avatar_url":"https://github.com/cuonglm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gogi - Go client for gitignore.io\n\n![Build Status](https://github.com/cuonglm/gogi/actions/workflows/ci.yml/badge.svg?branch=main)\n[![Go Reference](https://pkg.go.dev/badge/github.com/cuonglm/gogi.svg)](https://pkg.go.dev/github.com/cuonglm/gogi)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cuonglm/gogi)](https://goreportcard.com/report/github.com/cuonglm/gogi)\n\n# Why gogi?\n\nMake gitignore client more portable, without relying on the shell, curl, wget or any other http client.\n\n# Installation\n```sh\ngo get -u github.com/cuonglm/gogi\n```\n\n# Usage\n\n## As library\n```go\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/cuonglm/gogi\"\n)\n\nfunc main() {\n\tgogiClient, _ := gogi.NewHTTPClient()\n\tdata, err := gogiClient.List()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(data)\n}\n```\n\n## As binary:\n```sh\n$ go get github.com/cuonglm/gogi/cmd/gogi\n$ gogi\nUsage of gogi:\n  -create string\n    \tCreate .gitignore content for given types\n  -list\n    \tList all defined types\n  -search string\n    \tShow all types match string\n```\n\n## Using docker\n\n### Using `gnouc/gogi` image\n```sh\n$ docker pull gnouc/gogi\n$ docker run --rm gnouc/gogi -search python\nipythonnotebook\npython\n```\n\n### Building your own image\n\nBuilding builder image\n```sh\ndocker build -t gogi-builder -f Dockerfile.build .\n```\n\nBuilding binary image\n```sh\ndocker run --rm gogi-builder | docker build -t gogi -f Dockerfile.run -\n```\n\n# Environment variables\n\n`GOGI_API_URL` to change your gitignore server, default to https://www.gitignore.io\n\n# Author\n\nCuong Manh Le \u003ccuong.manhle.vn@gmail.com\u003e\n\n# License\n\nSee [LICENSE](https://github.com/cuonglm/gogi/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuonglm%2Fgogi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuonglm%2Fgogi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuonglm%2Fgogi/lists"}