{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/18160","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/18160/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/18160/comments","events_url":"https://api.github.com/repos/golang/go/issues/18160/events","html_url":"https://github.com/golang/go/issues/18160","id":193125393,"number":18160,"title":"Strange behaviour of strings.TrimLeft","user":{"login":"pikoscielniak","id":2356719,"avatar_url":"https://avatars.githubusercontent.com/u/2356719?v=3","gravatar_id":"","url":"https://api.github.com/users/pikoscielniak","html_url":"https://github.com/pikoscielniak","followers_url":"https://api.github.com/users/pikoscielniak/followers","following_url":"https://api.github.com/users/pikoscielniak/following{/other_user}","gists_url":"https://api.github.com/users/pikoscielniak/gists{/gist_id}","starred_url":"https://api.github.com/users/pikoscielniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikoscielniak/subscriptions","organizations_url":"https://api.github.com/users/pikoscielniak/orgs","repos_url":"https://api.github.com/users/pikoscielniak/repos","events_url":"https://api.github.com/users/pikoscielniak/events{/privacy}","received_events_url":"https://api.github.com/users/pikoscielniak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T14:13:15Z","updated_at":"2016-12-02T18:46:44Z","closed_at":"2016-12-02T16:00:17Z","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n### What version of Go are you using (`go version`)?\r\ngo1.7.3 \r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\nwindows/amd64\r\n\r\n### What did you do?\r\nI executed following test:\r\n```\r\nimport (\r\n\t\"testing\"\r\n\t\"strings\"\r\n)\r\n\r\nfunc TestTrimLeft(t *testing.T) {\r\n\ttrimed := strings.TrimLeft(\"record:edocument\", \"record:\")\r\n\r\n\tif trimed != \"edocument\" {\r\n\t\tt.Fatalf(\"Expected 'edocument' got '%s' \", trimed)\r\n\t}\r\n}\r\n```\r\n\r\n\r\n### What did you expect to see?\r\nThis test failed. I wouldn't expect this. Could someone explain this to me?\r\n\r\n### What did you see instead?\r\nI got following output from this test:\r\n```\r\nExpected 'edocument' got 'ument' \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/264530716","html_url":"https://github.com/golang/go/issues/18160#issuecomment-264530716","issue_url":"https://api.github.com/repos/golang/go/issues/18160","id":264530716,"user":{"login":"pikoscielniak","id":2356719,"avatar_url":"https://avatars.githubusercontent.com/u/2356719?v=3","gravatar_id":"","url":"https://api.github.com/users/pikoscielniak","html_url":"https://github.com/pikoscielniak","followers_url":"https://api.github.com/users/pikoscielniak/followers","following_url":"https://api.github.com/users/pikoscielniak/following{/other_user}","gists_url":"https://api.github.com/users/pikoscielniak/gists{/gist_id}","starred_url":"https://api.github.com/users/pikoscielniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikoscielniak/subscriptions","organizations_url":"https://api.github.com/users/pikoscielniak/orgs","repos_url":"https://api.github.com/users/pikoscielniak/repos","events_url":"https://api.github.com/users/pikoscielniak/events{/privacy}","received_events_url":"https://api.github.com/users/pikoscielniak/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T18:46:44Z","updated_at":"2016-12-02T18:46:44Z","body":"Thanks a lot. This is what I was looking for."}}
{"actor":{"display_login":"pikoscielniak"}}