{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":85599716,"defaultBranch":"master","name":"go-money","ownerLogin":"Rhymond","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-03-20T16:23:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/3577968?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1714128647.0","currentOid":""},"activityList":{"items":[{"before":"75eda0b26a13ef7d146236780e88adb9104a7939","after":"89bfd6b376f2e1c6047cd2141f39c1cc6a4d86c0","ref":"refs/heads/master","pushedAt":"2024-04-26T10:49:11.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"GH-44 implement driver.Valuer and sql.Scanner for Amount and Currency (#99)\n\n* GH-44 implement driver.Valuer and sql.Scanner for money.Currency\r\n\r\nThis allows any Golang ORM which supports the sql.Scanner to\r\nserialize (via sql.Driver) and deserialize (via sql.Scanner) a\r\nmoney.Currency instance.\r\n\r\nmoney.Amount is now a type alias to int64 which is already supported\r\nby sql.Scanner as one of the core built-in data types\r\n\r\n* GH-44 implement driver.Value and sql.Scanner for money.Money\r\n\r\nMoney's Value() function enables compatible\r\nsql drivers to serialize a money.Money instance\r\nto a single comma-delimited string value of\r\n\"amount,currency_code\"\r\n\r\nMoney's Scan() function assumes that it receives\r\na single column where the src value is a comma-\r\ndelimited string in the format\r\n\"amount,currency_code\"\r\n\r\nWhile the storage format is up to the client when\r\nthe amount and currency are stored separately\r\na compatible scanner value can be created in\r\nSQLite like this:\r\n\r\n SELECT amount || \",\" || currency as 'amount'\r\n\r\nIt is left to the client to decide to use Money's\r\nValuer implementation with a db annotation on\r\na property of type Money or else to store the\r\nAmount and Currency values as two separate\r\ncolumns and return them as a single joined\r\nstring field.\r\n\r\n* GH-44 fix an edge case\r\n\r\nstrings.Split(src,,) will return\r\na slice with length 2 even if\r\none of the strings is empty\r\n\r\n* fix: money.value tests\r\n\r\n* refactor out the currency separator and make it customizable\r\n\r\nclients can set money.DBMoneyValueSeparator to determine which\r\nseparator (e.g. \",\" \"|\" \";\" \":\" \"AS\" etc) to use when creating a single\r\ndriver.Value object to represent a money.Money instance as a single\r\nstring database field.\r\n\r\nthis allows the money package to support string values such as\r\n\r\n10@USD\r\n20;CAD\r\n30|IRD\r\n40 in GBP\r\n\r\netc\r\n\r\n---------\r\n\r\nCo-authored-by: Raymond ","shortMessageHtmlLink":"GH-44 implement driver.Valuer and sql.Scanner for Amount and Currency ("}},{"before":null,"after":"75eda0b26a13ef7d146236780e88adb9104a7939","ref":"refs/heads/update-git-workflow-git-versions","pushedAt":"2024-04-12T06:18:34.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"update workflow and run tests on latest go version","shortMessageHtmlLink":"update workflow and run tests on latest go version"}},{"before":"d338884af85210bac3cecbe87ec1adcb96fd6b6d","after":"75eda0b26a13ef7d146236780e88adb9104a7939","ref":"refs/heads/master","pushedAt":"2024-04-12T06:18:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"update workflow and run tests on latest go version","shortMessageHtmlLink":"update workflow and run tests on latest go version"}},{"before":"226240abe0dab86c7815e419931b6dc7b099f8d0","after":"d338884af85210bac3cecbe87ec1adcb96fd6b6d","ref":"refs/heads/master","pushedAt":"2024-04-12T06:15:22.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"Fix/newFromFloat-currency-panic (#145)\n\n* test(New-and-NewFromFloat): added test suits with unregistered currency\r\n\r\n* fix(NewFromFloat): no longer panics when given an invalid or unregistered currency\r\n\r\n* test(New_WithUnregisteredCurrency): used a better test case\r\n\r\n---------\r\n\r\nCo-authored-by: Raymond ","shortMessageHtmlLink":"Fix/newFromFloat-currency-panic (#145)"}},{"before":"beeb1faddf4a4574632c0bdb066eaf4e5a506f19","after":"226240abe0dab86c7815e419931b6dc7b099f8d0","ref":"refs/heads/master","pushedAt":"2024-04-12T06:11:54.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"feat: add MRU, SLE, STN currency support (#143)\n\n* feat: add MRU, SLE, STN currency support\r\n\r\n* update the Sierra Leone currency numeric code","shortMessageHtmlLink":"feat: add MRU, SLE, STN currency support (#143)"}},{"before":"11fb01ee0a561feb7a831160e90b0fdef19b891e","after":"beeb1faddf4a4574632c0bdb066eaf4e5a506f19","ref":"refs/heads/master","pushedAt":"2023-11-14T16:07:47.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"feat: add VES currency (#139)\n\n* feat: add VES currency\r\n\r\n* update VEF numeric code to 937","shortMessageHtmlLink":"feat: add VES currency (#139)"}},{"before":"01f31745bc50de7c4cd9b7cca01c52bcf257705b","after":"11fb01ee0a561feb7a831160e90b0fdef19b891e","ref":"refs/heads/master","pushedAt":"2023-06-07T19:04:20.745Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"Use appropriate number symbol for ZWL. ZWD should have unique code currency. (#133)","shortMessageHtmlLink":"Use appropriate number symbol for ZWL. ZWD should have unique code cu…"}},{"before":"cf07c4c92cd2b7722751f9dcc11b696cb6e2c692","after":"01f31745bc50de7c4cd9b7cca01c52bcf257705b","ref":"refs/heads/master","pushedAt":"2023-06-07T12:44:49.579Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"Add ZWL currency https://github.com/Rhymond/go-money/issues/131 (#132)","shortMessageHtmlLink":"Add ZWL currency #131 (#132)"}},{"before":"aced7c79af539bbd78a95ebada3060d40cb043e3","after":"cf07c4c92cd2b7722751f9dcc11b696cb6e2c692","ref":"refs/heads/master","pushedAt":"2023-03-27T07:56:31.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Rhymond","name":"Raymond","path":"/Rhymond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3577968?s=80&v=4"},"commit":{"message":"Fix IDR currency decimal and thousand format (#129)\n\nCo-authored-by: Sravani Labala ","shortMessageHtmlLink":"Fix IDR currency decimal and thousand format (#129)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEOw5spAA","startCursor":null,"endCursor":null}},"title":"Activity · Rhymond/go-money"}