{"id":30682418,"url":"https://github.com/xiusin/pine","last_synced_at":"2025-10-08T06:12:09.715Z","repository":{"id":48506570,"uuid":"156636270","full_name":"xiusin/pine","owner":"xiusin","description":"轻量级高性能GO语言开发框架。支持MVC、依赖注入、动态返回值、中间件、 路由分组、子域名路由注册管理。 组件基于接口实现，可以自行实现或定义组件。","archived":false,"fork":false,"pushed_at":"2025-08-25T06:07:43.000Z","size":3188,"stargazers_count":11,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T18:15:14.224Z","etag":null,"topics":["framework","goweb","pine","router"],"latest_commit_sha":null,"homepage":"https://xiusin.github.io/pine/","language":"JavaScript","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/xiusin.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":"2018-11-08T02:06:24.000Z","updated_at":"2025-03-10T02:29:33.000Z","dependencies_parsed_at":"2024-06-01T15:49:46.235Z","dependency_job_id":"76c09c82-a928-4918-875a-beabad077013","html_url":"https://github.com/xiusin/pine","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/xiusin/pine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiusin%2Fpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiusin%2Fpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiusin%2Fpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiusin%2Fpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiusin","download_url":"https://codeload.github.com/xiusin/pine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiusin%2Fpine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278898372,"owners_count":26064983,"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-10-08T02:00:06.501Z","response_time":56,"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":["framework","goweb","pine","router"],"created_at":"2025-09-01T18:09:21.100Z","updated_at":"2025-10-08T06:12:09.673Z","avatar_url":"https://github.com/xiusin.png","language":"JavaScript","readme":"\n# pine #\n\n`PineFramework` 一个轻量级高性能GO语言开发框架。支持MVC、依赖注入、动态返回值、中间件、 路由分组、子域名路由注册管理。 组件基于接口实现，可以自行实现或定义组件。\n\n# 动态返回值 #\n\n\u003e 此功能只能用于mvc模式，根据方法自动兼容显示内容\n\n1. 如果没有返回值，并且没有渲染过模板，会自动调用模板渲染方法. 查找路径为 `ControllerName/MethodName`\n2. 如果返回`inerface{}` ，会自动打印部分能兼容的数据，返回结果为字符串类型 `text/html`\n3. 如果返回一个非nil的错误，会直接`panic`(不包括复合类型里的error)\n4. 如果返回 string,int 等类型,显示为`text`\n5. 实现controller的结构属性全局静态变量共享(加锁/引用)，需要共享的参数(名称以share切为引用类型)\n\n# di #\n\n\u003e (发现有些数据无法解析出来pkgPath，现在只有类型名称)服务注册名称更为`any`，\n如果注册服务类型实例，自动绑定字符串文件路径和`pkgPath`，\n`controller`自动解析参数是对比参数pkgPath，以确定是否为真实参数类型。\n\n# 路由 #\n\n- 可打印路由如下\n\n---\n\n```markdown\n$ go run main.go\nMETHOD | PATH | ALIASES | NAME     | HANDLE\n------ | ---- | ------- | ----     | -------\nGET    | /    |         | rootPath | path/to/routes_error/actions.HomeHandler\n```\n\n---\n\n# TODO #\n\n- 支持非Post或Get开始的方法名称，支持任何方式请求\n- 自动反射出来的路由需要修改成小驼峰名称\n- 细化input(参照laravel), 抽象convert结构体, 处理各种数据转换.\n- 模板引擎支持传入文件系统对象\n- 实现路由占位符用于自定义路由替换规则\n- 缓存驱动github.com/syndtr/goleveldb/leveldb\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiusin%2Fpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiusin%2Fpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiusin%2Fpine/lists"}