{"action":"opened","number":29,"pull_request":{"url":"https://api.github.com/repos/crgimenes/goconfig/pulls/29","id":202065068,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMDY1MDY4","html_url":"https://github.com/crgimenes/goconfig/pull/29","diff_url":"https://github.com/crgimenes/goconfig/pull/29.diff","patch_url":"https://github.com/crgimenes/goconfig/pull/29.patch","issue_url":"https://api.github.com/repos/crgimenes/goconfig/issues/29","number":29,"state":"open","locked":false,"title":"Validate","user":{"login":"crgimenes","id":834772,"node_id":"MDQ6VXNlcjgzNDc3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/834772?v=4","gravatar_id":"","url":"https://api.github.com/users/crgimenes","html_url":"https://github.com/crgimenes","followers_url":"https://api.github.com/users/crgimenes/followers","following_url":"https://api.github.com/users/crgimenes/following{/other_user}","gists_url":"https://api.github.com/users/crgimenes/gists{/gist_id}","starred_url":"https://api.github.com/users/crgimenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgimenes/subscriptions","organizations_url":"https://api.github.com/users/crgimenes/orgs","repos_url":"https://api.github.com/users/crgimenes/repos","events_url":"https://api.github.com/users/crgimenes/events{/privacy}","received_events_url":"https://api.github.com/users/crgimenes/received_events","type":"User","site_admin":false},"body":"Add cfgRequired tag\r\n\r\n## How to test\r\n\r\n```console\r\ngo test ./...\r\n```\r\n\r\nTo make a required field just put the `cfgRequired:\"true\" tag when declaring the struture.","created_at":"2018-07-17T20:47:51Z","updated_at":"2018-07-17T20:47:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/crgimenes/goconfig/pulls/29/commits","review_comments_url":"https://api.github.com/repos/crgimenes/goconfig/pulls/29/comments","review_comment_url":"https://api.github.com/repos/crgimenes/goconfig/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crgimenes/goconfig/issues/29/comments","statuses_url":"https://api.github.com/repos/crgimenes/goconfig/statuses/815a62859568669b31e56b14ca32db548cbf00ee","head":{"label":"crgimenes:validate","ref":"validate","sha":"815a62859568669b31e56b14ca32db548cbf00ee","user":{"login":"crgimenes","id":834772,"node_id":"MDQ6VXNlcjgzNDc3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/834772?v=4","gravatar_id":"","url":"https://api.github.com/users/crgimenes","html_url":"https://github.com/crgimenes","followers_url":"https://api.github.com/users/crgimenes/followers","following_url":"https://api.github.com/users/crgimenes/following{/other_user}","gists_url":"https://api.github.com/users/crgimenes/gists{/gist_id}","starred_url":"https://api.github.com/users/crgimenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgimenes/subscriptions","organizations_url":"https://api.github.com/users/crgimenes/orgs","repos_url":"https://api.github.com/users/crgimenes/repos","events_url":"https://api.github.com/users/crgimenes/events{/privacy}","received_events_url":"https://api.github.com/users/crgimenes/received_events","type":"User","site_admin":false},"repo":{"id":76778648,"node_id":"MDEwOlJlcG9zaXRvcnk3Njc3ODY0OA==","name":"goconfig","full_name":"crgimenes/goconfig","owner":{"login":"crgimenes","id":834772,"node_id":"MDQ6VXNlcjgzNDc3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/834772?v=4","gravatar_id":"","url":"https://api.github.com/users/crgimenes","html_url":"https://github.com/crgimenes","followers_url":"https://api.github.com/users/crgimenes/followers","following_url":"https://api.github.com/users/crgimenes/following{/other_user}","gists_url":"https://api.github.com/users/crgimenes/gists{/gist_id}","starred_url":"https://api.github.com/users/crgimenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgimenes/subscriptions","organizations_url":"https://api.github.com/users/crgimenes/orgs","repos_url":"https://api.github.com/users/crgimenes/repos","events_url":"https://api.github.com/users/crgimenes/events{/privacy}","received_events_url":"https://api.github.com/users/crgimenes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crgimenes/goconfig","description":"goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.","fork":false,"url":"https://api.github.com/repos/crgimenes/goconfig","forks_url":"https://api.github.com/repos/crgimenes/goconfig/forks","keys_url":"https://api.github.com/repos/crgimenes/goconfig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crgimenes/goconfig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crgimenes/goconfig/teams","hooks_url":"https://api.github.com/repos/crgimenes/goconfig/hooks","issue_events_url":"https://api.github.com/repos/crgimenes/goconfig/issues/events{/number}","events_url":"https://api.github.com/repos/crgimenes/goconfig/events","assignees_url":"https://api.github.com/repos/crgimenes/goconfig/assignees{/user}","branches_url":"https://api.github.com/repos/crgimenes/goconfig/branches{/branch}","tags_url":"https://api.github.com/repos/crgimenes/goconfig/tags","blobs_url":"https://api.github.com/repos/crgimenes/goconfig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crgimenes/goconfig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crgimenes/goconfig/git/refs{/sha}","trees_url":"https://api.github.com/repos/crgimenes/goconfig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crgimenes/goconfig/statuses/{sha}","languages_url":"https://api.github.com/repos/crgimenes/goconfig/languages","stargazers_url":"https://api.github.com/repos/crgimenes/goconfig/stargazers","contributors_url":"https://api.github.com/repos/crgimenes/goconfig/contributors","subscribers_url":"https://api.github.com/repos/crgimenes/goconfig/subscribers","subscription_url":"https://api.github.com/repos/crgimenes/goconfig/subscription","commits_url":"https://api.github.com/repos/crgimenes/goconfig/commits{/sha}","git_commits_url":"https://api.github.com/repos/crgimenes/goconfig/git/commits{/sha}","comments_url":"https://api.github.com/repos/crgimenes/goconfig/comments{/number}","issue_comment_url":"https://api.github.com/repos/crgimenes/goconfig/issues/comments{/number}","contents_url":"https://api.github.com/repos/crgimenes/goconfig/contents/{+path}","compare_url":"https://api.github.com/repos/crgimenes/goconfig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crgimenes/goconfig/merges","archive_url":"https://api.github.com/repos/crgimenes/goconfig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crgimenes/goconfig/downloads","issues_url":"https://api.github.com/repos/crgimenes/goconfig/issues{/number}","pulls_url":"https://api.github.com/repos/crgimenes/goconfig/pulls{/number}","milestones_url":"https://api.github.com/repos/crgimenes/goconfig/milestones{/number}","notifications_url":"https://api.github.com/repos/crgimenes/goconfig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crgimenes/goconfig/labels{/name}","releases_url":"https://api.github.com/repos/crgimenes/goconfig/releases{/id}","deployments_url":"https://api.github.com/repos/crgimenes/goconfig/deployments","created_at":"2016-12-18T11:22:41Z","updated_at":"2018-06-22T11:27:32Z","pushed_at":"2018-07-17T20:37:56Z","git_url":"git://github.com/crgimenes/goconfig.git","ssh_url":"git@github.com:crgimenes/goconfig.git","clone_url":"https://github.com/crgimenes/goconfig.git","svn_url":"https://github.com/crgimenes/goconfig","homepage":"https://godoc.org/github.com/crgimenes/goconfig","size":157,"stargazers_count":73,"watchers_count":73,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":5,"watchers":73,"default_branch":"master"}},"base":{"label":"crgimenes:master","ref":"master","sha":"28a1d8978c21064d3f39e4ea3f93d1beec07278b","user":{"login":"crgimenes","id":834772,"node_id":"MDQ6VXNlcjgzNDc3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/834772?v=4","gravatar_id":"","url":"https://api.github.com/users/crgimenes","html_url":"https://github.com/crgimenes","followers_url":"https://api.github.com/users/crgimenes/followers","following_url":"https://api.github.com/users/crgimenes/following{/other_user}","gists_url":"https://api.github.com/users/crgimenes/gists{/gist_id}","starred_url":"https://api.github.com/users/crgimenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgimenes/subscriptions","organizations_url":"https://api.github.com/users/crgimenes/orgs","repos_url":"https://api.github.com/users/crgimenes/repos","events_url":"https://api.github.com/users/crgimenes/events{/privacy}","received_events_url":"https://api.github.com/users/crgimenes/received_events","type":"User","site_admin":false},"repo":{"id":76778648,"node_id":"MDEwOlJlcG9zaXRvcnk3Njc3ODY0OA==","name":"goconfig","full_name":"crgimenes/goconfig","owner":{"login":"crgimenes","id":834772,"node_id":"MDQ6VXNlcjgzNDc3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/834772?v=4","gravatar_id":"","url":"https://api.github.com/users/crgimenes","html_url":"https://github.com/crgimenes","followers_url":"https://api.github.com/users/crgimenes/followers","following_url":"https://api.github.com/users/crgimenes/following{/other_user}","gists_url":"https://api.github.com/users/crgimenes/gists{/gist_id}","starred_url":"https://api.github.com/users/crgimenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgimenes/subscriptions","organizations_url":"https://api.github.com/users/crgimenes/orgs","repos_url":"https://api.github.com/users/crgimenes/repos","events_url":"https://api.github.com/users/crgimenes/events{/privacy}","received_events_url":"https://api.github.com/users/crgimenes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crgimenes/goconfig","description":"goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.","fork":false,"url":"https://api.github.com/repos/crgimenes/goconfig","forks_url":"https://api.github.com/repos/crgimenes/goconfig/forks","keys_url":"https://api.github.com/repos/crgimenes/goconfig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crgimenes/goconfig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crgimenes/goconfig/teams","hooks_url":"https://api.github.com/repos/crgimenes/goconfig/hooks","issue_events_url":"https://api.github.com/repos/crgimenes/goconfig/issues/events{/number}","events_url":"https://api.github.com/repos/crgimenes/goconfig/events","assignees_url":"https://api.github.com/repos/crgimenes/goconfig/assignees{/user}","branches_url":"https://api.github.com/repos/crgimenes/goconfig/branches{/branch}","tags_url":"https://api.github.com/repos/crgimenes/goconfig/tags","blobs_url":"https://api.github.com/repos/crgimenes/goconfig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crgimenes/goconfig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crgimenes/goconfig/git/refs{/sha}","trees_url":"https://api.github.com/repos/crgimenes/goconfig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crgimenes/goconfig/statuses/{sha}","languages_url":"https://api.github.com/repos/crgimenes/goconfig/languages","stargazers_url":"https://api.github.com/repos/crgimenes/goconfig/stargazers","contributors_url":"https://api.github.com/repos/crgimenes/goconfig/contributors","subscribers_url":"https://api.github.com/repos/crgimenes/goconfig/subscribers","subscription_url":"https://api.github.com/repos/crgimenes/goconfig/subscription","commits_url":"https://api.github.com/repos/crgimenes/goconfig/commits{/sha}","git_commits_url":"https://api.github.com/repos/crgimenes/goconfig/git/commits{/sha}","comments_url":"https://api.github.com/repos/crgimenes/goconfig/comments{/number}","issue_comment_url":"https://api.github.com/repos/crgimenes/goconfig/issues/comments{/number}","contents_url":"https://api.github.com/repos/crgimenes/goconfig/contents/{+path}","compare_url":"https://api.github.com/repos/crgimenes/goconfig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crgimenes/goconfig/merges","archive_url":"https://api.github.com/repos/crgimenes/goconfig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crgimenes/goconfig/downloads","issues_url":"https://api.github.com/repos/crgimenes/goconfig/issues{/number}","pulls_url":"https://api.github.com/repos/crgimenes/goconfig/pulls{/number}","milestones_url":"https://api.github.com/repos/crgimenes/goconfig/milestones{/number}","notifications_url":"https://api.github.com/repos/crgimenes/goconfig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crgimenes/goconfig/labels{/name}","releases_url":"https://api.github.com/repos/crgimenes/goconfig/releases{/id}","deployments_url":"https://api.github.com/repos/crgimenes/goconfig/deployments","created_at":"2016-12-18T11:22:41Z","updated_at":"2018-06-22T11:27:32Z","pushed_at":"2018-07-17T20:37:56Z","git_url":"git://github.com/crgimenes/goconfig.git","ssh_url":"git@github.com:crgimenes/goconfig.git","clone_url":"https://github.com/crgimenes/goconfig.git","svn_url":"https://github.com/crgimenes/goconfig","homepage":"https://godoc.org/github.com/crgimenes/goconfig","size":157,"stargazers_count":73,"watchers_count":73,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":5,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crgimenes/goconfig/pulls/29"},"html":{"href":"https://github.com/crgimenes/goconfig/pull/29"},"issue":{"href":"https://api.github.com/repos/crgimenes/goconfig/issues/29"},"comments":{"href":"https://api.github.com/repos/crgimenes/goconfig/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/crgimenes/goconfig/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/crgimenes/goconfig/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crgimenes/goconfig/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/crgimenes/goconfig/statuses/815a62859568669b31e56b14ca32db548cbf00ee"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":163,"deletions":2,"changed_files":6}}
{"actor":{"display_login":"crgimenes"}}