{"id":47905135,"url":"https://github.com/yvesago/gin-model-template","last_synced_at":"2026-04-04T04:48:47.344Z","repository":{"id":57599444,"uuid":"72930778","full_name":"yvesago/gin-model-template","owner":"yvesago","description":"Data model templates with gorp orm for gin","archived":false,"fork":false,"pushed_at":"2018-07-26T08:09:58.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-04T04:48:46.110Z","etag":null,"topics":["gin","golang","gorp-orm"],"latest_commit_sha":null,"homepage":null,"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/yvesago.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":"2016-11-05T14:20:10.000Z","updated_at":"2020-06-27T10:19:16.000Z","dependencies_parsed_at":"2022-09-18T09:21:04.975Z","dependency_job_id":null,"html_url":"https://github.com/yvesago/gin-model-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yvesago/gin-model-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvesago%2Fgin-model-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvesago%2Fgin-model-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvesago%2Fgin-model-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvesago%2Fgin-model-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yvesago","download_url":"https://codeload.github.com/yvesago/gin-model-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvesago%2Fgin-model-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31388168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: 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":["gin","golang","gorp-orm"],"created_at":"2026-04-04T04:48:46.757Z","updated_at":"2026-04-04T04:48:47.328Z","avatar_url":"https://github.com/yvesago.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Model templates with gorp orm for gin \n====================================\n\n[![Build Status](https://travis-ci.org/yvesago/gin-model-template.svg?branch=master)](https://travis-ci.org/yvesago/gin-model-template)\n[![Coverage Status](https://coveralls.io/repos/github/yvesago/gin-model-template/badge.svg?branch=master)](https://coveralls.io/github/yvesago/gin-model-template)\n[![Go Report Card](https://goreportcard.com/badge/github.com/yvesago/gin-model-template)](https://goreportcard.com/report/github.com/yvesago/gin-model-template)\n\n## Description\n\nData model templates with gorp orm for gin\n\n## Usage\n\nCreate a \"models\" directory in your project\n\n  cp gin-model-template/*.go  myproject/models/ \n\n``agent.go`` and ``user.go`` are tables templates. Feel free to rename files and fix ``XXX`` tags.\nTest with ``go test``\n\n``repo.go`` contains database parameters. \n\nIn your main.go project import ``./models``\n\nSample :\n\n```go\n  package main\n    \n  import (\n      \"fmt\"\n      \"github.com/gin-gonic/gin\"\n      . \"./models\"\n  )\n    \n  func main() {\n    r := gin.Default()\n    \n    r.Use(Database(\"test.sqlite3\"))\n  \n    v1 := r.Group(\"api/v1\")\n    {\n        v1.GET(\"/users\", GetUsers)\n        v1.GET(\"/users/:id\", GetUser)\n        v1.POST(\"/users\", PostUser)\n        v1.PUT(\"/users/:id\", UpdateUser)\n        v1.DELETE(\"/users/:id\", DeleteUser)\n        v1.OPTIONS(\"/users\", Options)     // POST\n        v1.OPTIONS(\"/users/:id\", Options) // PUT, DELETE\n     ...\n\n```\n\n\n\n## Licence\n\nMIT License\n\nCopyright (c) 2016-2018 Yves Agostini\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n\u003cyves+github@yvesago.net\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyvesago%2Fgin-model-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyvesago%2Fgin-model-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyvesago%2Fgin-model-template/lists"}