{"id":18688446,"url":"https://github.com/beanwei/go-by-practice","last_synced_at":"2025-11-08T04:30:24.457Z","repository":{"id":98400544,"uuid":"135100076","full_name":"BeanWei/Go-by-Practice","owner":"BeanWei","description":"不积跬步无以至千里，Go练手实战","archived":false,"fork":false,"pushed_at":"2018-07-01T10:59:01.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T01:22:51.953Z","etag":null,"topics":["go-by-example","golang","practice-project"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeanWei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-28T02:26:49.000Z","updated_at":"2018-07-01T10:59:03.000Z","dependencies_parsed_at":"2023-04-26T04:42:50.445Z","dependency_job_id":null,"html_url":"https://github.com/BeanWei/Go-by-Practice","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/BeanWei%2FGo-by-Practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanWei%2FGo-by-Practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanWei%2FGo-by-Practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanWei%2FGo-by-Practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeanWei","download_url":"https://codeload.github.com/BeanWei/Go-by-Practice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239548460,"owners_count":19657395,"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":["go-by-example","golang","practice-project"],"created_at":"2024-11-07T10:36:54.458Z","updated_at":"2025-11-08T04:30:24.409Z","avatar_url":"https://github.com/BeanWei.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go by Practice\n-------------------------------\n## 不积跬步无以至千里，Go练手实战\n-------------------------------\n\n* Weather-Cli(命令行天气)\n    原作者 [@yangwenmai](https://github.com/yangwenmai/wg)    \n```\n- 命令行效果\n$ go run weather-cli.go\n查询的城市：北京\n┌────────────────┬─────────┬────────────────┬────────────────┬────────┬─────┬───────────┬────────┬────────┬──────────────────────────────────────┐\n│ Date           │ Sunrise │ High           │ Low            │ Sunset │ Aqi │ Fx        │ Fl     │ Type   │ Notice                               │\n├────────────────┼─────────┼────────────────┼────────────────┼────────┼─────┼───────────┼────────┼────────┼──────────────────────────────────────┤\n│ 28日星期一     │ 04:51   │ 高温 30.0℃     │ 低温 16.0℃     │ 19:33  │ 51  │ 西北风    │ 4-5级  │ 晴     │ 愿你拥有比阳光明媚的心情             │\n│ 29日星期二     │ 04:50   │ 高温 30.0℃     │ 低温 16.0℃     │ 19:34  │ 49  │ 西风      │ \u003c3级   │ 多云   │ 阴晴之间，谨防紫外线侵扰             │\n│ 30日星期三     │ 04:50   │ 高温 33.0℃     │ 低温 19.0℃     │ 19:34  │ 39  │ 西南风    │ \u003c3级   │ 晴     │ 愿你拥有比阳光明媚的心情             │\n│ 31日星期四     │ 04:49   │ 高温 34.0℃     │ 低温 20.0℃     │ 19:35  │ 41  │ 西南风    │ \u003c3级   │ 晴     │ 愿你拥有比阳光明媚的心情             │\n│ 01日星期五     │ 04:49   │ 高温 35.0℃     │ 低温 20.0℃     │ 19:36  │ 74  │ 西南风    │ \u003c3级   │ 晴     │ 愿你拥有比阳光明媚的心情             │\n└────────────────┴─────────┴────────────────┴────────────────┴────────┴─────┴───────────┴────────┴────────┴──────────────────────────────────────\n```\n\n* Table(控制台输出表格)\n    原作者 [@modood](https://github.com/modood/table)\n    ！！！ 完整版请参照原版 ！！！\n- [Go反射详解](http://www.cnblogs.com/golove/p/5909541.html)\n```\n*测试代码直接写在源码里面了*\n-效果展示\n$ go run table.go\n┌───────────┬──────────┬──────────────────┐\n│ Name      │ Sigil    │ Motto            │\n├───────────┼──────────┼─────────────────┤┼\n│ Stark     │ direwolf │ Winter is coming │\n│ Targaryen │ dragon   │ Fire and Blood   │\n│ Lannister │ lion     │ Hear Me Roar     │\n└───────────┴──────────┴──────────────────┘\n```\n\n* Emoji(控制台输出表情)\n    原作者 [@kyokomi](https://github.com/kyokomi/emoji)\n```\n- 效果展示(!!!直接用gitbash测试，windows不支持!!!)\n$ go test\n🍺   ビール!!!\nPASS\nok      github.com/BeanWei/Go-by-Practice/Emoji 0.078s\n```\n\n* 时间解析Golang版\n```\n- 效果展示\n    \"1分钟前\",\n    \"54分钟前\",\n    \"1小时前\",\n    \"13小时前\",\n    \"昨天\",\n    \"前天\",\n    \"06-25\",\n    \"12-20\"\n  /*-----------------------------*/\n  2018/07/01 18:57:37 2018-07-01 18:56:37\n  2018/07/01 18:57:37 2018-07-01 18:03:37\n  2018/07/01 18:57:37 2018-07-01 17:57:37\n  2018/07/01 18:57:37 2018-07-01 05:57:37\n  2018/07/01 18:57:37 2018-06-30 18:57:37\n  2018/07/01 18:57:37 2018-06-29 18:57:37\n  2018/07/01 18:57:37 2018-06-25 00:00:00\n  2018/07/01 18:57:37 2018-12-20 00:00:00\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeanwei%2Fgo-by-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeanwei%2Fgo-by-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeanwei%2Fgo-by-practice/lists"}