{"action":"opened","issue":{"url":"https://api.github.com/repos/oklog/ulid/issues/2","repository_url":"https://api.github.com/repos/oklog/ulid","labels_url":"https://api.github.com/repos/oklog/ulid/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/oklog/ulid/issues/2/comments","events_url":"https://api.github.com/repos/oklog/ulid/issues/2/events","html_url":"https://github.com/oklog/ulid/issues/2","id":194855508,"number":2,"title":"Timestamp problem","user":{"login":"darrylwest","id":2416988,"avatar_url":"https://avatars.githubusercontent.com/u/2416988?v=3","gravatar_id":"","url":"https://api.github.com/users/darrylwest","html_url":"https://github.com/darrylwest","followers_url":"https://api.github.com/users/darrylwest/followers","following_url":"https://api.github.com/users/darrylwest/following{/other_user}","gists_url":"https://api.github.com/users/darrylwest/gists{/gist_id}","starred_url":"https://api.github.com/users/darrylwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrylwest/subscriptions","organizations_url":"https://api.github.com/users/darrylwest/orgs","repos_url":"https://api.github.com/users/darrylwest/repos","events_url":"https://api.github.com/users/darrylwest/events{/privacy}","received_events_url":"https://api.github.com/users/darrylwest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-11T20:49:54Z","updated_at":"2016-12-11T20:49:54Z","closed_at":null,"body":"I'm not sure if the output format: 0000XSNJG0MQJHBF4QX1EFD6Y3 is correct from the example.  The leading zeros don't look right when compared with ulid's generated in other languages.  So I made a slight change to the demo:\r\n\r\nvar entropy := rand.New(rand.NewSource(time.Now().UnixNano()))\r\nfunc ExampleULID() {\r\n    var ts uint64 = uint64(time.Now().UnixNano() / 1000000)\r\n    value, _ := ulid.New(ts, entropy))\r\n    fmt.Println(value.String())\r\n    // Output: 01B3QSN2GDP1G124W1Q8D4PD1N\r\n}\r\n\r\nThis seems to match encoded times from other implementations."}}
{"actor":{"display_login":"darrylwest"}}