{"action":"created","comment":{"url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/comments/61580680","id":61580680,"diff_hunk":"@@ -96,6 +96,28 @@ func ExamplePinyin_fallbackCustom1() {\n \t// Output: [[zhong] [guo] [ren] [b] [c] [d]]\n }\n \n+func ExamplePinyin_firstLetterStringLowerCase() {\n+\thans := \"A中国人abc\"\n+\ta := pinyin.NewArgs()\n+\ta.Style = pinyin.FirstLetter\n+\ta.Fallback = func(r rune, a pinyin.Args) []string {\n+\t\treturn []string{string(r + 0)}\n+\t}\n+\tnested_arr := pinyin.Pinyin(hans, a)\n+\tvar result string\n+\tfor _, element := range nested_arr {\n+\t\tresult += strings.Join(element, \"\")\n+\t}\n+\tfmt.Println(strings.ToLower(result))\n+\t// Output: azgrabc\n+}\n+\n+func ExamplePinyin_simplePinyin() {","path":"example_test.go","position":32,"original_position":32,"commit_id":"c84ad6ebda83e756907d060307138ba170789068","original_commit_id":"c84ad6ebda83e756907d060307138ba170789068","user":{"login":"mozillazg","id":485054,"avatar_url":"https://avatars.githubusercontent.com/u/485054?v=3","gravatar_id":"","url":"https://api.github.com/users/mozillazg","html_url":"https://github.com/mozillazg","followers_url":"https://api.github.com/users/mozillazg/followers","following_url":"https://api.github.com/users/mozillazg/following{/other_user}","gists_url":"https://api.github.com/users/mozillazg/gists{/gist_id}","starred_url":"https://api.github.com/users/mozillazg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozillazg/subscriptions","organizations_url":"https://api.github.com/users/mozillazg/orgs","repos_url":"https://api.github.com/users/mozillazg/repos","events_url":"https://api.github.com/users/mozillazg/events{/privacy}","received_events_url":"https://api.github.com/users/mozillazg/received_events","type":"User","site_admin":false},"body":"这个应该是 `ExampleSimplePinyin` ，这样才会对应到 `SimplePinyin` 这个函数，`ExamplePinyin_xxx` 这样对应的是 `Pinyin` 这个函数。","created_at":"2016-04-29T13:54:09Z","updated_at":"2016-04-29T13:54:09Z","html_url":"https://github.com/mozillazg/go-pinyin/pull/7#discussion_r61580680","pull_request_url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/comments/61580680"},"html":{"href":"https://github.com/mozillazg/go-pinyin/pull/7#discussion_r61580680"},"pull_request":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7","id":67900596,"html_url":"https://github.com/mozillazg/go-pinyin/pull/7","diff_url":"https://github.com/mozillazg/go-pinyin/pull/7.diff","patch_url":"https://github.com/mozillazg/go-pinyin/pull/7.patch","issue_url":"https://api.github.com/repos/mozillazg/go-pinyin/issues/7","number":7,"state":"open","locked":false,"title":"Add example test about first letter with keep non chinese words","user":{"login":"wahyd4","id":836576,"avatar_url":"https://avatars.githubusercontent.com/u/836576?v=3","gravatar_id":"","url":"https://api.github.com/users/wahyd4","html_url":"https://github.com/wahyd4","followers_url":"https://api.github.com/users/wahyd4/followers","following_url":"https://api.github.com/users/wahyd4/following{/other_user}","gists_url":"https://api.github.com/users/wahyd4/gists{/gist_id}","starred_url":"https://api.github.com/users/wahyd4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wahyd4/subscriptions","organizations_url":"https://api.github.com/users/wahyd4/orgs","repos_url":"https://api.github.com/users/wahyd4/repos","events_url":"https://api.github.com/users/wahyd4/events{/privacy}","received_events_url":"https://api.github.com/users/wahyd4/received_events","type":"User","site_admin":false},"body":"Add tranform example about: A中国人abc => azgrabc","created_at":"2016-04-26T14:54:47Z","updated_at":"2016-04-29T13:54:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8dffc1536b7efa66d2bacc6449e99e93fcdd67b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7/commits","review_comments_url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7/comments","review_comment_url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozillazg/go-pinyin/issues/7/comments","statuses_url":"https://api.github.com/repos/mozillazg/go-pinyin/statuses/c84ad6ebda83e756907d060307138ba170789068","head":{"label":"wahyd4:develop","ref":"develop","sha":"c84ad6ebda83e756907d060307138ba170789068","user":{"login":"wahyd4","id":836576,"avatar_url":"https://avatars.githubusercontent.com/u/836576?v=3","gravatar_id":"","url":"https://api.github.com/users/wahyd4","html_url":"https://github.com/wahyd4","followers_url":"https://api.github.com/users/wahyd4/followers","following_url":"https://api.github.com/users/wahyd4/following{/other_user}","gists_url":"https://api.github.com/users/wahyd4/gists{/gist_id}","starred_url":"https://api.github.com/users/wahyd4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wahyd4/subscriptions","organizations_url":"https://api.github.com/users/wahyd4/orgs","repos_url":"https://api.github.com/users/wahyd4/repos","events_url":"https://api.github.com/users/wahyd4/events{/privacy}","received_events_url":"https://api.github.com/users/wahyd4/received_events","type":"User","site_admin":false},"repo":{"id":57095891,"name":"go-pinyin","full_name":"wahyd4/go-pinyin","owner":{"login":"wahyd4","id":836576,"avatar_url":"https://avatars.githubusercontent.com/u/836576?v=3","gravatar_id":"","url":"https://api.github.com/users/wahyd4","html_url":"https://github.com/wahyd4","followers_url":"https://api.github.com/users/wahyd4/followers","following_url":"https://api.github.com/users/wahyd4/following{/other_user}","gists_url":"https://api.github.com/users/wahyd4/gists{/gist_id}","starred_url":"https://api.github.com/users/wahyd4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wahyd4/subscriptions","organizations_url":"https://api.github.com/users/wahyd4/orgs","repos_url":"https://api.github.com/users/wahyd4/repos","events_url":"https://api.github.com/users/wahyd4/events{/privacy}","received_events_url":"https://api.github.com/users/wahyd4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wahyd4/go-pinyin","description":"汉语拼音转换工具 Go 版","fork":true,"url":"https://api.github.com/repos/wahyd4/go-pinyin","forks_url":"https://api.github.com/repos/wahyd4/go-pinyin/forks","keys_url":"https://api.github.com/repos/wahyd4/go-pinyin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wahyd4/go-pinyin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wahyd4/go-pinyin/teams","hooks_url":"https://api.github.com/repos/wahyd4/go-pinyin/hooks","issue_events_url":"https://api.github.com/repos/wahyd4/go-pinyin/issues/events{/number}","events_url":"https://api.github.com/repos/wahyd4/go-pinyin/events","assignees_url":"https://api.github.com/repos/wahyd4/go-pinyin/assignees{/user}","branches_url":"https://api.github.com/repos/wahyd4/go-pinyin/branches{/branch}","tags_url":"https://api.github.com/repos/wahyd4/go-pinyin/tags","blobs_url":"https://api.github.com/repos/wahyd4/go-pinyin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wahyd4/go-pinyin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wahyd4/go-pinyin/git/refs{/sha}","trees_url":"https://api.github.com/repos/wahyd4/go-pinyin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wahyd4/go-pinyin/statuses/{sha}","languages_url":"https://api.github.com/repos/wahyd4/go-pinyin/languages","stargazers_url":"https://api.github.com/repos/wahyd4/go-pinyin/stargazers","contributors_url":"https://api.github.com/repos/wahyd4/go-pinyin/contributors","subscribers_url":"https://api.github.com/repos/wahyd4/go-pinyin/subscribers","subscription_url":"https://api.github.com/repos/wahyd4/go-pinyin/subscription","commits_url":"https://api.github.com/repos/wahyd4/go-pinyin/commits{/sha}","git_commits_url":"https://api.github.com/repos/wahyd4/go-pinyin/git/commits{/sha}","comments_url":"https://api.github.com/repos/wahyd4/go-pinyin/comments{/number}","issue_comment_url":"https://api.github.com/repos/wahyd4/go-pinyin/issues/comments{/number}","contents_url":"https://api.github.com/repos/wahyd4/go-pinyin/contents/{+path}","compare_url":"https://api.github.com/repos/wahyd4/go-pinyin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wahyd4/go-pinyin/merges","archive_url":"https://api.github.com/repos/wahyd4/go-pinyin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wahyd4/go-pinyin/downloads","issues_url":"https://api.github.com/repos/wahyd4/go-pinyin/issues{/number}","pulls_url":"https://api.github.com/repos/wahyd4/go-pinyin/pulls{/number}","milestones_url":"https://api.github.com/repos/wahyd4/go-pinyin/milestones{/number}","notifications_url":"https://api.github.com/repos/wahyd4/go-pinyin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wahyd4/go-pinyin/labels{/name}","releases_url":"https://api.github.com/repos/wahyd4/go-pinyin/releases{/id}","deployments_url":"https://api.github.com/repos/wahyd4/go-pinyin/deployments","created_at":"2016-04-26T03:47:10Z","updated_at":"2016-04-26T03:47:10Z","pushed_at":"2016-04-26T15:44:29Z","git_url":"git://github.com/wahyd4/go-pinyin.git","ssh_url":"git@github.com:wahyd4/go-pinyin.git","clone_url":"https://github.com/wahyd4/go-pinyin.git","svn_url":"https://github.com/wahyd4/go-pinyin","homepage":"https://godoc.org/github.com/mozillazg/go-pinyin","size":822,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozillazg:develop","ref":"develop","sha":"c24290a8f682faa01d07266dc6060f61326fdb6c","user":{"login":"mozillazg","id":485054,"avatar_url":"https://avatars.githubusercontent.com/u/485054?v=3","gravatar_id":"","url":"https://api.github.com/users/mozillazg","html_url":"https://github.com/mozillazg","followers_url":"https://api.github.com/users/mozillazg/followers","following_url":"https://api.github.com/users/mozillazg/following{/other_user}","gists_url":"https://api.github.com/users/mozillazg/gists{/gist_id}","starred_url":"https://api.github.com/users/mozillazg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozillazg/subscriptions","organizations_url":"https://api.github.com/users/mozillazg/orgs","repos_url":"https://api.github.com/users/mozillazg/repos","events_url":"https://api.github.com/users/mozillazg/events{/privacy}","received_events_url":"https://api.github.com/users/mozillazg/received_events","type":"User","site_admin":false},"repo":{"id":26397419,"name":"go-pinyin","full_name":"mozillazg/go-pinyin","owner":{"login":"mozillazg","id":485054,"avatar_url":"https://avatars.githubusercontent.com/u/485054?v=3","gravatar_id":"","url":"https://api.github.com/users/mozillazg","html_url":"https://github.com/mozillazg","followers_url":"https://api.github.com/users/mozillazg/followers","following_url":"https://api.github.com/users/mozillazg/following{/other_user}","gists_url":"https://api.github.com/users/mozillazg/gists{/gist_id}","starred_url":"https://api.github.com/users/mozillazg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozillazg/subscriptions","organizations_url":"https://api.github.com/users/mozillazg/orgs","repos_url":"https://api.github.com/users/mozillazg/repos","events_url":"https://api.github.com/users/mozillazg/events{/privacy}","received_events_url":"https://api.github.com/users/mozillazg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mozillazg/go-pinyin","description":"汉语拼音转换工具 Go 版","fork":false,"url":"https://api.github.com/repos/mozillazg/go-pinyin","forks_url":"https://api.github.com/repos/mozillazg/go-pinyin/forks","keys_url":"https://api.github.com/repos/mozillazg/go-pinyin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozillazg/go-pinyin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozillazg/go-pinyin/teams","hooks_url":"https://api.github.com/repos/mozillazg/go-pinyin/hooks","issue_events_url":"https://api.github.com/repos/mozillazg/go-pinyin/issues/events{/number}","events_url":"https://api.github.com/repos/mozillazg/go-pinyin/events","assignees_url":"https://api.github.com/repos/mozillazg/go-pinyin/assignees{/user}","branches_url":"https://api.github.com/repos/mozillazg/go-pinyin/branches{/branch}","tags_url":"https://api.github.com/repos/mozillazg/go-pinyin/tags","blobs_url":"https://api.github.com/repos/mozillazg/go-pinyin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozillazg/go-pinyin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozillazg/go-pinyin/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozillazg/go-pinyin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozillazg/go-pinyin/statuses/{sha}","languages_url":"https://api.github.com/repos/mozillazg/go-pinyin/languages","stargazers_url":"https://api.github.com/repos/mozillazg/go-pinyin/stargazers","contributors_url":"https://api.github.com/repos/mozillazg/go-pinyin/contributors","subscribers_url":"https://api.github.com/repos/mozillazg/go-pinyin/subscribers","subscription_url":"https://api.github.com/repos/mozillazg/go-pinyin/subscription","commits_url":"https://api.github.com/repos/mozillazg/go-pinyin/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozillazg/go-pinyin/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozillazg/go-pinyin/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozillazg/go-pinyin/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozillazg/go-pinyin/contents/{+path}","compare_url":"https://api.github.com/repos/mozillazg/go-pinyin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozillazg/go-pinyin/merges","archive_url":"https://api.github.com/repos/mozillazg/go-pinyin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozillazg/go-pinyin/downloads","issues_url":"https://api.github.com/repos/mozillazg/go-pinyin/issues{/number}","pulls_url":"https://api.github.com/repos/mozillazg/go-pinyin/pulls{/number}","milestones_url":"https://api.github.com/repos/mozillazg/go-pinyin/milestones{/number}","notifications_url":"https://api.github.com/repos/mozillazg/go-pinyin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozillazg/go-pinyin/labels{/name}","releases_url":"https://api.github.com/repos/mozillazg/go-pinyin/releases{/id}","deployments_url":"https://api.github.com/repos/mozillazg/go-pinyin/deployments","created_at":"2014-11-09T14:04:33Z","updated_at":"2016-04-22T04:26:18Z","pushed_at":"2016-04-26T15:44:30Z","git_url":"git://github.com/mozillazg/go-pinyin.git","ssh_url":"git@github.com:mozillazg/go-pinyin.git","clone_url":"https://github.com/mozillazg/go-pinyin.git","svn_url":"https://github.com/mozillazg/go-pinyin","homepage":"https://godoc.org/github.com/mozillazg/go-pinyin","size":820,"stargazers_count":163,"watchers_count":163,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":2,"forks":39,"open_issues":2,"watchers":163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7"},"html":{"href":"https://github.com/mozillazg/go-pinyin/pull/7"},"issue":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/issues/7"},"comments":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/mozillazg/go-pinyin/statuses/c84ad6ebda83e756907d060307138ba170789068"}}}}