{"id":17882217,"url":"https://github.com/mackee/seyfert","last_synced_at":"2025-04-03T02:13:14.060Z","repository":{"id":144336175,"uuid":"74529280","full_name":"mackee/seyfert","owner":"mackee","description":"Template Engine for Golang code, like Generics.","archived":false,"fork":false,"pushed_at":"2016-12-11T02:03:49.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T12:52:54.975Z","etag":null,"topics":[],"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/mackee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-23T01:39:06.000Z","updated_at":"2016-12-12T08:06:22.000Z","dependencies_parsed_at":"2023-07-26T21:16:00.142Z","dependency_job_id":null,"html_url":"https://github.com/mackee/seyfert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fseyfert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fseyfert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fseyfert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fseyfert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackee","download_url":"https://codeload.github.com/mackee/seyfert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922246,"owners_count":20855345,"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":[],"created_at":"2024-10-28T12:48:51.131Z","updated_at":"2025-04-03T02:13:14.041Z","avatar_url":"https://github.com/mackee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seyfert\n\u003e Template engine for Golang code.\n\n**THIS IS A ALPHA QUALITY RELEASE. API MAY CHANGE WITHOUT NOTICE.**\n\n## Table of Contents\n\n* [Install](https://github.com/mackee/seyfert/blob/master/README.md#install)\n* [Usage](https://github.com/mackee/seyfert/blob/master/README.md#usage)\n* [Contribute](https://github.com/mackee/seyfert/blob/master/README.md#contribute)\n* [License](https://github.com/mackee/seyfert/blob/master/README.md#license)\n\n## Install\n\n```\n$ go get github.com/mackee/seyfert\n```\n\n## Usage\n\n**Source**:\n```go\npackage main\n\nimport (\n\t\"github.com/mackee/seyfert\"\n)\n\nvar tmpl = byte(`\npackage main\n\n//+seyfert\ntype T_ struct {\n\t//+expand F\n}\n\n//+seyfert\nfunc (t T_) String() string {\n\treturn t.Name\n}\n\n`)\n\nfunc main() {\n\tbinds := seyfert.Binds{\n\t\t\"T\": \"Person\",\n\t}\n\tfiedsSet := seyfert.FieldsSet{\n\t\t\"F\": seyfert.Fields{\n\t\t\tseyfert.Field{\n\t\t\t\tName: \"Name\",\n\t\t\t\tType: \"string\",\n\t\t\t\tTag:  `json:\"name\"`,\n\t\t\t},\n\t\t\tseyfert.Field{\n\t\t\t\tName: \"Age\",\n\t\t\t\tType: \"int\",\n\t\t\t\tTag:  `json:\"age\"`,\n\t\t\t},\n\t\t},\n\t}\n\terr := seyfert.Render(tmpl, \"person.gen.go\", binds, fieldsSet, \"main\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n\n**Generated File**:\n\n```go\npackage main\n\n//+seyfert\ntype Person struct {\n\tName string `json:\"name\"`\n\tAge  string `json:\"age\"`\n}\n\n//+seyfert\nfunc (t Person) String() string {\n\treturn t.Name\n}\n```\n\nSee also: https://github.com/mackee/seyfert/blob/master/_example/genreqparser\n\n## Contribute\n\nPRs accepted.\n\n## License\n\nMIT © mackee\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fseyfert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackee%2Fseyfert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fseyfert/lists"}