{"action":"created","comment":{"url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/comments/234875038","pull_request_review_id":176610163,"id":234875038,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDg3NTAzOA==","diff_hunk":"@@ -119,6 +155,38 @@ $ make logs-out\n $ make logs-err\n ```\n \n+## 各ディレクトリ/ファイルの一口解説\n+\n+- `initdb.sql`\n+  - データベースのスキーマ定義と、初期のデータ\n+- `Makefile`\n+  - ビルドやデプロイの手続きをまとめたMakefile. 使い方は上記READMEを参照のこと\n+- `main.go`\n+  - プログラムの開始地点(`main()` 関数)と、サーバ起動・ルーティングなどの主な処理。\n+- `todo.go`\n+  - todosテーブルのビジネスロジックを記述したコード (所謂モデルというものです)\n+- `go.mod`\n+  - vgoというパッケージ管理ツールの生成するファイル. (ruyにおけるGemfile、npmにおけるpackage.jsonみたいなもの)\n+- `go.sum`\n+  - こちらもvgoが生成するファイル\n+- `templates/`\n+  - `html/template` パッケージで利用するテンプレートファイル\n+- `assets`\n+  - cssや画像ファイルなど. ファイル配信のサンプルで利用\n+- `docs/`\n+  - Windowsの方向けの設定方法です!\n+\n+## 今回利用している主なパッケージ\n+\n+- [go-chi](https://github.com/go-chi/chi)\n+  - シンプルなルーティング機能を提供してくれるパッケージ\n+- [sqlx](https://github.com/jmoiron/sqlx)\n+  - Goの標準sqlパッケージを拡張するパッケージ\n+  - Selectの結果をStructにマッピングしてくれる機能など\n+- [godotenv](https://github.com/joho/godotenv)","path":"README.md","position":79,"original_position":79,"commit_id":"61025c8499f42b5ca04332320fc6b2cc50a65d25","original_commit_id":"61025c8499f42b5ca04332320fc6b2cc50a65d25","user":{"login":"k1LoW","id":57114,"node_id":"MDQ6VXNlcjU3MTE0","avatar_url":"https://avatars1.githubusercontent.com/u/57114?v=4","gravatar_id":"","url":"https://api.github.com/users/k1LoW","html_url":"https://github.com/k1LoW","followers_url":"https://api.github.com/users/k1LoW/followers","following_url":"https://api.github.com/users/k1LoW/following{/other_user}","gists_url":"https://api.github.com/users/k1LoW/gists{/gist_id}","starred_url":"https://api.github.com/users/k1LoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k1LoW/subscriptions","organizations_url":"https://api.github.com/users/k1LoW/orgs","repos_url":"https://api.github.com/users/k1LoW/repos","events_url":"https://api.github.com/users/k1LoW/events{/privacy}","received_events_url":"https://api.github.com/users/k1LoW/received_events","type":"User","site_admin":false},"body":"そうだった！","created_at":"2018-11-20T05:45:19Z","updated_at":"2018-11-20T05:45:19Z","html_url":"https://github.com/pepabo/todo-backend-golang-mc/pull/4#discussion_r234875038","pull_request_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/comments/234875038"},"html":{"href":"https://github.com/pepabo/todo-backend-golang-mc/pull/4#discussion_r234875038"},"pull_request":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4","id":232193558,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMTkzNTU4","html_url":"https://github.com/pepabo/todo-backend-golang-mc/pull/4","diff_url":"https://github.com/pepabo/todo-backend-golang-mc/pull/4.diff","patch_url":"https://github.com/pepabo/todo-backend-golang-mc/pull/4.patch","issue_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/4","number":4,"state":"open","locked":false,"title":"READMEのドキュメントを少し追加","user":{"login":"ry023","id":11782371,"node_id":"MDQ6VXNlcjExNzgyMzcx","avatar_url":"https://avatars2.githubusercontent.com/u/11782371?v=4","gravatar_id":"","url":"https://api.github.com/users/ry023","html_url":"https://github.com/ry023","followers_url":"https://api.github.com/users/ry023/followers","following_url":"https://api.github.com/users/ry023/following{/other_user}","gists_url":"https://api.github.com/users/ry023/gists{/gist_id}","starred_url":"https://api.github.com/users/ry023/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ry023/subscriptions","organizations_url":"https://api.github.com/users/ry023/orgs","repos_url":"https://api.github.com/users/ry023/repos","events_url":"https://api.github.com/users/ry023/events{/privacy}","received_events_url":"https://api.github.com/users/ry023/received_events","type":"User","site_admin":false},"body":"参照できる情報をちょっとだけ追加","created_at":"2018-11-20T05:06:06Z","updated_at":"2018-11-20T05:45:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11a4f2a9fdb100b806fe49968eb734ba792a0d5c","assignee":{"login":"ry023","id":11782371,"node_id":"MDQ6VXNlcjExNzgyMzcx","avatar_url":"https://avatars2.githubusercontent.com/u/11782371?v=4","gravatar_id":"","url":"https://api.github.com/users/ry023","html_url":"https://github.com/ry023","followers_url":"https://api.github.com/users/ry023/followers","following_url":"https://api.github.com/users/ry023/following{/other_user}","gists_url":"https://api.github.com/users/ry023/gists{/gist_id}","starred_url":"https://api.github.com/users/ry023/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ry023/subscriptions","organizations_url":"https://api.github.com/users/ry023/orgs","repos_url":"https://api.github.com/users/ry023/repos","events_url":"https://api.github.com/users/ry023/events{/privacy}","received_events_url":"https://api.github.com/users/ry023/received_events","type":"User","site_admin":false},"assignees":[{"login":"ry023","id":11782371,"node_id":"MDQ6VXNlcjExNzgyMzcx","avatar_url":"https://avatars2.githubusercontent.com/u/11782371?v=4","gravatar_id":"","url":"https://api.github.com/users/ry023","html_url":"https://github.com/ry023","followers_url":"https://api.github.com/users/ry023/followers","following_url":"https://api.github.com/users/ry023/following{/other_user}","gists_url":"https://api.github.com/users/ry023/gists{/gist_id}","starred_url":"https://api.github.com/users/ry023/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ry023/subscriptions","organizations_url":"https://api.github.com/users/ry023/orgs","repos_url":"https://api.github.com/users/ry023/repos","events_url":"https://api.github.com/users/ry023/events{/privacy}","received_events_url":"https://api.github.com/users/ry023/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4/commits","review_comments_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4/comments","review_comment_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/4/comments","statuses_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/statuses/61025c8499f42b5ca04332320fc6b2cc50a65d25","head":{"label":"pepabo:add-readme","ref":"add-readme","sha":"61025c8499f42b5ca04332320fc6b2cc50a65d25","user":{"login":"pepabo","id":1708980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDg5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1708980?v=4","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"repo":{"id":156814926,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY4MTQ5MjY=","name":"todo-backend-golang-mc","full_name":"pepabo/todo-backend-golang-mc","private":false,"owner":{"login":"pepabo","id":1708980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDg5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1708980?v=4","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pepabo/todo-backend-golang-mc","description":"Todo-Backend API server written in Go for \"LOLIPOP! Managed Cloud\"","fork":false,"url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc","forks_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/forks","keys_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/teams","hooks_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/hooks","issue_events_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/events{/number}","events_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/events","assignees_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/assignees{/user}","branches_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/branches{/branch}","tags_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/tags","blobs_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/refs{/sha}","trees_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/statuses/{sha}","languages_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/languages","stargazers_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/stargazers","contributors_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/contributors","subscribers_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/subscribers","subscription_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/subscription","commits_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/commits{/sha}","git_commits_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/commits{/sha}","comments_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/comments{/number}","issue_comment_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/comments{/number}","contents_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/contents/{+path}","compare_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/merges","archive_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/downloads","issues_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues{/number}","pulls_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls{/number}","milestones_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/milestones{/number}","notifications_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/labels{/name}","releases_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/releases{/id}","deployments_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/deployments","created_at":"2018-11-09T05:32:30Z","updated_at":"2018-11-20T05:26:46Z","pushed_at":"2018-11-20T05:39:14Z","git_url":"git://github.com/pepabo/todo-backend-golang-mc.git","ssh_url":"git@github.com:pepabo/todo-backend-golang-mc.git","clone_url":"https://github.com/pepabo/todo-backend-golang-mc.git","svn_url":"https://github.com/pepabo/todo-backend-golang-mc","homepage":"https://todobackend.com/client/index.html?https://todo-backend-golang-mc.lolipop.io/todos","size":5312,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"pepabo:master","ref":"master","sha":"684c3729401bb923d10cde5a4dc66c30a7aa9000","user":{"login":"pepabo","id":1708980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDg5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1708980?v=4","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"repo":{"id":156814926,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY4MTQ5MjY=","name":"todo-backend-golang-mc","full_name":"pepabo/todo-backend-golang-mc","private":false,"owner":{"login":"pepabo","id":1708980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDg5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1708980?v=4","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pepabo/todo-backend-golang-mc","description":"Todo-Backend API server written in Go for \"LOLIPOP! Managed Cloud\"","fork":false,"url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc","forks_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/forks","keys_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/teams","hooks_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/hooks","issue_events_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/events{/number}","events_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/events","assignees_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/assignees{/user}","branches_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/branches{/branch}","tags_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/tags","blobs_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/refs{/sha}","trees_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/statuses/{sha}","languages_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/languages","stargazers_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/stargazers","contributors_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/contributors","subscribers_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/subscribers","subscription_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/subscription","commits_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/commits{/sha}","git_commits_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/git/commits{/sha}","comments_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/comments{/number}","issue_comment_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/comments{/number}","contents_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/contents/{+path}","compare_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/merges","archive_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/downloads","issues_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues{/number}","pulls_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls{/number}","milestones_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/milestones{/number}","notifications_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/labels{/name}","releases_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/releases{/id}","deployments_url":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/deployments","created_at":"2018-11-09T05:32:30Z","updated_at":"2018-11-20T05:26:46Z","pushed_at":"2018-11-20T05:39:14Z","git_url":"git://github.com/pepabo/todo-backend-golang-mc.git","ssh_url":"git@github.com:pepabo/todo-backend-golang-mc.git","clone_url":"https://github.com/pepabo/todo-backend-golang-mc.git","svn_url":"https://github.com/pepabo/todo-backend-golang-mc","homepage":"https://todobackend.com/client/index.html?https://todo-backend-golang-mc.lolipop.io/todos","size":5312,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4"},"html":{"href":"https://github.com/pepabo/todo-backend-golang-mc/pull/4"},"issue":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/4"},"comments":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/pepabo/todo-backend-golang-mc/statuses/61025c8499f42b5ca04332320fc6b2cc50a65d25"}},"author_association":"NONE"}}
{"actor":{"display_login":"k1LoW"}}