{"id":21347283,"url":"https://github.com/zddhub/duck","last_synced_at":"2025-07-12T17:31:54.278Z","repository":{"id":57611056,"uuid":"38966617","full_name":"zddhub/duck","owner":"zddhub","description":"A core web framework via Golang","archived":false,"fork":false,"pushed_at":"2015-07-24T15:15:39.000Z","size":140,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T23:10:01.030Z","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/zddhub.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":"2015-07-12T15:25:24.000Z","updated_at":"2018-08-11T01:19:38.000Z","dependencies_parsed_at":"2022-09-11T03:00:22.593Z","dependency_job_id":null,"html_url":"https://github.com/zddhub/duck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zddhub/duck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fduck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fduck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fduck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fduck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zddhub","download_url":"https://codeload.github.com/zddhub/duck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Fduck/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265025494,"owners_count":23699757,"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-11-22T02:13:36.617Z","updated_at":"2025-07-12T17:31:54.018Z","avatar_url":"https://github.com/zddhub.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duck\n\nDuck is a simple but powerful package for learning how to write modular web applications/services in Golang.\n\nNotice: Duck is still in the design stage. It's not working yet. Stay tuned.\n\n# Getting Started\n\nAfter installing Go and setting up your [GOPATH](http://golang.org/doc/code.html#GOPATH), and then\n\n```go\ngo get github.com/zddhub/duck\n```\n\n# How to use\n\nYou can use Duck like this:\n\n```go\npackage main\n\nimport \"github.com/zddhub/duck\"\n\nfunc main() {\n  d := duck.Incubate()\n\n  d.Get(\"/\", func() string {\n    return \"Hello world!\"\n  })\n\n  d.Run()\n}\n```\n\nThen run your server:\nYou will now have a Duck webserver running on `localhost:3030`\n\nYou can run more complex case:\n\n```go\ngo run main/main.go\n```\n\n# Getting Help\n\nYou can read the follow blog to learn more:\n* [Go web framework 1](http://www.zddhub.com/memo/2015/07/04/go-web-framework/)\n* [Dependency inject](http://www.zddhub.com/memo/2015/07/05/go-dependency-inject/)\n* [Go web framwwork 2](http://www.zddhub.com/memo/2015/07/11/go-web-framework-2/)\n\n# About\n\nInspired by [Martini](https://github.com/go-martini/martini)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzddhub%2Fduck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzddhub%2Fduck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzddhub%2Fduck/lists"}