{"action":"created","issue":{"url":"https://api.github.com/repos/golang/gddo/issues/543","repository_url":"https://api.github.com/repos/golang/gddo","labels_url":"https://api.github.com/repos/golang/gddo/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/golang/gddo/issues/543/comments","events_url":"https://api.github.com/repos/golang/gddo/issues/543/events","html_url":"https://github.com/golang/gddo/issues/543","id":307488554,"number":543,"title":"theme: hide \"useless\" tags and methods, such as JSON marshaling","user":{"login":"buchanae","id":262647,"avatar_url":"https://avatars1.githubusercontent.com/u/262647?v=4","gravatar_id":"","url":"https://api.github.com/users/buchanae","html_url":"https://github.com/buchanae","followers_url":"https://api.github.com/users/buchanae/followers","following_url":"https://api.github.com/users/buchanae/following{/other_user}","gists_url":"https://api.github.com/users/buchanae/gists{/gist_id}","starred_url":"https://api.github.com/users/buchanae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchanae/subscriptions","organizations_url":"https://api.github.com/users/buchanae/orgs","repos_url":"https://api.github.com/users/buchanae/repos","events_url":"https://api.github.com/users/buchanae/events{/privacy}","received_events_url":"https://api.github.com/users/buchanae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-22T02:57:03Z","updated_at":"2018-03-22T04:00:30Z","closed_at":null,"author_association":"NONE","body":"I have a package with lot of types, and few methods: https://godoc.org/github.com/buchanae/cwl\r\n\r\nThis package represents a document type, named CWL, so the types are the meat of the package. Unfortunately, due to the way JSON marshaling works, there is a lot of extra stuff which is not that interesting – \"json\" tags (almost always the same) and MarshalJSON or MarshalText methods.\r\n\r\nWhat would you think about having an option to hide these details which I, as a package author, deem \"less than useful\"?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/golang/gddo/issues/comments/375172478","html_url":"https://github.com/golang/gddo/issues/543#issuecomment-375172478","issue_url":"https://api.github.com/repos/golang/gddo/issues/543","id":375172478,"user":{"login":"buchanae","id":262647,"avatar_url":"https://avatars1.githubusercontent.com/u/262647?v=4","gravatar_id":"","url":"https://api.github.com/users/buchanae","html_url":"https://github.com/buchanae","followers_url":"https://api.github.com/users/buchanae/followers","following_url":"https://api.github.com/users/buchanae/following{/other_user}","gists_url":"https://api.github.com/users/buchanae/gists{/gist_id}","starred_url":"https://api.github.com/users/buchanae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchanae/subscriptions","organizations_url":"https://api.github.com/users/buchanae/orgs","repos_url":"https://api.github.com/users/buchanae/repos","events_url":"https://api.github.com/users/buchanae/events{/privacy}","received_events_url":"https://api.github.com/users/buchanae/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T04:00:30Z","updated_at":"2018-03-22T04:00:30Z","author_association":"NONE","body":"If there's a reasonable approach to hiding json tags and Marshal* methods for a large number of struct types, I'd be glad to use it, however I can't think of one.\r\n\r\nI share your concerns about potentially negative side-effects, but I think there are reasonable solutions. A simple Javascript toggle could be used to show/hide these low-level details. Another idea would be to substantially *deemphasize* these low-level details, instead of hiding them completely.\r\n\r\nOf course, I always have the option to generate documentation tailored to my package outside of gddo, but that's also ambitious, and possibly loses the familiarity of gddo."}}
{"actor":{"display_login":"buchanae"}}