{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":23944963,"defaultBranch":"master","name":"msgp","ownerLogin":"tinylib","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-09-12T03:09:53.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/10499993?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1698417260.0","currentOid":""},"activityList":{"items":[{"before":"6d6f813fff1bca5fc901c85b8554d6f114ccd974","after":"2236701c6f34628354cce940448f7476e0bed221","ref":"refs/heads/master","pushedAt":"2024-03-22T16:44:30.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"philhofer","name":"Phil","path":"/philhofer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2940902?s=80&v=4"},"commit":{"message":"Support illumos.","shortMessageHtmlLink":"Support illumos."}},{"before":"79cd8c567500782a741583595b644db44ec35058","after":"6d6f813fff1bca5fc901c85b8554d6f114ccd974","ref":"refs/heads/master","pushedAt":"2024-02-27T11:43:26.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"klauspost","name":"Klaus Post","path":"/klauspost","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5663952?s=80&v=4"},"commit":{"message":"test AppendIntf against ReadIntfBytes (#341)\n\n* add back and forth encode decode testsuite\r\n\r\nSigned-off-by: Eliott Bouhana \r\n\r\n* run golangci-lint --fix\r\n\r\nSigned-off-by: Eliott Bouhana \r\n\r\n---------\r\n\r\nSigned-off-by: Eliott Bouhana ","shortMessageHtmlLink":"test AppendIntf against ReadIntfBytes (#341)"}},{"before":"db2e247deb371efcfb2b4cad44c71ac4efbe1051","after":"79cd8c567500782a741583595b644db44ec35058","ref":"refs/heads/master","pushedAt":"2024-02-26T16:44:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"klauspost","name":"Klaus Post","path":"/klauspost","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5663952?s=80&v=4"},"commit":{"message":"support for any maps in msgp.AppendIntf like in (*Writer).writeIntf (#340)\n\nSigned-off-by: Eliott Bouhana ","shortMessageHtmlLink":"support for any maps in msgp.AppendIntf like in (*Writer).writeIntf (#…"}},{"before":"e00f9b078669f0a2f0f9623884fcf3d337ceef10","after":"db2e247deb371efcfb2b4cad44c71ac4efbe1051","ref":"refs/heads/master","pushedAt":"2024-02-10T14:50:10.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"klauspost","name":"Klaus Post","path":"/klauspost","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5663952?s=80&v=4"},"commit":{"message":"Add map[string]struct{} support (#339)\n\nEmpty structs used as map values would generate invalid code.\r\n\r\nFixes #298","shortMessageHtmlLink":"Add map[string]struct{} support (#339)"}},{"before":"cabc8327e504f144d232163f97822f2d1777460d","after":"e00f9b078669f0a2f0f9623884fcf3d337ceef10","ref":"refs/heads/master","pushedAt":"2024-02-10T14:47:45.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"klauspost","name":"Klaus Post","path":"/klauspost","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5663952?s=80&v=4"},"commit":{"message":"allownil: Allocate 0 length slices (#336)\n\n* allownil: Allocate 0 length slices\r\n\r\nWhen `allownil` is enabled, always allocate zero length slices.\r\n\r\nThis ensures roundtrips with 0-length slices are not returned as nil.\r\n\r\nReplaces #304\r\n\r\nAdds tests. Bonus: Don't shell out to test issue 94.","shortMessageHtmlLink":"allownil: Allocate 0 length slices (#336)"}},{"before":"778f9820a4fbcd9b7a00912eaa09028e9cf6962d","after":"cabc8327e504f144d232163f97822f2d1777460d","ref":"refs/heads/master","pushedAt":"2023-10-27T14:40:48.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"philhofer","name":"Phil","path":"/philhofer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2940902?s=80&v=4"},"commit":{"message":"omitzero implementation","shortMessageHtmlLink":"omitzero implementation"}},{"before":"4c452221aa96bb9e9b362e8a161430e457d2bac2","after":"778f9820a4fbcd9b7a00912eaa09028e9cf6962d","ref":"refs/heads/master","pushedAt":"2023-10-27T13:22:31.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"klauspost","name":"Klaus Post","path":"/klauspost","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5663952?s=80&v=4"},"commit":{"message":"chore: Upgrade dependencies + CI (#335)\n\n* Minimum version is Go 1.18\r\n* Upgrade tinygo for test\r\n* Fix tinygo tests on windows\r\n* Fix windows lint","shortMessageHtmlLink":"chore: Upgrade dependencies + CI (#335)"}},{"before":"6ac204f0b4d48d17ab4fa442134c7fba13127a4e","after":"4c452221aa96bb9e9b362e8a161430e457d2bac2","ref":"refs/heads/master","pushedAt":"2023-10-24T15:12:01.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"philhofer","name":"Phil","path":"/philhofer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2940902?s=80&v=4"},"commit":{"message":"gen: fix decoding for non-[]byte types when type-conversion needed\n\nFor example for the annotation below:\n```\n//msgp:shim uuid.UUID as:[]byte using:uuidToBytes/bytesToUUID\n```\nWhen an UUID is an array of bytes (and not a slice of bytes).\nWe need to use `uuidToBytes()` call and not hardcoded `[]byte()` cast from the generated func `DecodeMsg(dc *msgp.Reader) error`\n\nEx:\n```\nfunc (z *Foobar) DecodeMsg(dc *msgp.Reader) (err error) {\n\t[...]\n\tcase \"Id\":\n\t{\n\t\tvar zb0002 []byte\n-\t\tzb0002, err = dc.ReadBytes([]byte(z.Id))\n+\t\tzb0002, err = dc.ReadBytes(uuidToBytes(z.Id))\n```","shortMessageHtmlLink":"gen: fix decoding for non-[]byte types when type-conversion needed"}},{"before":"4e26c5d41c0b7509a08c6c4e0a8b9487dd4770d6","after":"6ac204f0b4d48d17ab4fa442134c7fba13127a4e","ref":"refs/heads/master","pushedAt":"2023-07-05T14:09:25.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"philhofer","name":"Phil","path":"/philhofer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2940902?s=80&v=4"},"commit":{"message":"Turn benchmark into a proper test","shortMessageHtmlLink":"Turn benchmark into a proper test"}},{"before":"1627683be442ebd97db0b9e07d9bd46c148aa568","after":"4e26c5d41c0b7509a08c6c4e0a8b9487dd4770d6","ref":"refs/heads/master","pushedAt":"2023-06-27T14:17:57.835Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"philhofer","name":"Phil","path":"/philhofer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2940902?s=80&v=4"},"commit":{"message":"Add ReportAllocs into the benchmark","shortMessageHtmlLink":"Add ReportAllocs into the benchmark"}},{"before":"8a5e756647fb7042c66d91644e92a6515248e0f3","after":"1627683be442ebd97db0b9e07d9bd46c148aa568","ref":"refs/heads/master","pushedAt":"2023-05-31T13:55:18.802Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"philhofer","name":"Phil","path":"/philhofer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2940902?s=80&v=4"},"commit":{"message":"Support \"allownil\" for byte slices\n\nSince byte slices are considered a base element and not a slice in terms of parsing we must handle it separately.\n\nTested with \"AByteSlice\" in `_generate/allownil.go`:\n\n```\n\t// string \"abyteslice\"\n\to = append(o, 0xaa, 0x61, 0x62, 0x79, 0x74, 0x65, 0x73, 0x6c, 0x69, 0x63, 0x65)\n\tif z.AByteSlice == nil { // allownil: if nil\n\t\to = msgp.AppendNil(o)\n\t} else {\n\t\to = msgp.AppendBytes(o, z.AByteSlice)\n\t}\n```\n\n```\n\t\tcase \"abyteslice\":\n\t\t\tif msgp.IsNil(bts) {\n\t\t\t\tbts = bts[1:]\n\t\t\t\tz.AByteSlice = nil\n\t\t\t} else {\n\t\t\t\tz.AByteSlice, bts, err = msgp.ReadBytesBytes(bts, z.AByteSlice)\n\t\t\t\tif err != nil {\n\t\t\t\t\terr = msgp.WrapError(err, \"AByteSlice\")\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n```","shortMessageHtmlLink":"Support \"allownil\" for byte slices"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEHPP8-QA","startCursor":null,"endCursor":null}},"title":"Activity · tinylib/msgp"}