aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
Commit message (Collapse)AuthorAgeFilesLines
* Port `tests\core\encoding\json`Jeroen van Rijn2024-06-023-41/+42
|
* Port `tests\core\encoding\hxa`Jeroen van Rijn2024-06-022-37/+36
| | | | And fix a few leaks in `core:encoding/hxa` while at it.
* Port `tests\encoding\hex`Jeroen van Rijn2024-06-021-6/+5
|
* Update `tests\core\encoding\cbor` to use new test runner.Jeroen van Rijn2024-06-024-113/+116
| | | | | | It was leaky and required a substantial number of `loc := #caller_location` additions to parts of the core library to make it easier to track down how and where it leaked. The tests now run fine multi-threaded.
* Add `core:encoding/ansi` packageFeoramund2024-06-022-0/+157
|
* `core:encoding/ini`gingerBill2024-05-311-0/+189
|
* Merge pull request #3628 from IllusionMan1212/bitset-json-marshalling-fixJeroen van Rijn2024-05-251-2/+0
|\ | | | | fix(core/encoding/json): remove Unsupported_Type return when marshalling bit_set
| * fix(core/encoding/json): remove Unsupported_Type return when marshalling bit_setIllusionMan12122024-05-251-2/+0
| |
* | Remove core:mem import in example.Jeroen van Rijn2024-05-241-1/+0
| |
* | Add iterator_next(&r) to CSV.Jeroen van Rijn2024-05-242-2/+112
|/
* encoding/json: Properly marshal `#no_nil` unionskorvahkh2024-05-111-5/+8
| | | | | Previously the first variant of a `#no_nil` would always be output as `null`, and following variants would be treated as the wrong type.
* Fix `omitempty` in `json.marshal`Feoramund2024-04-272-2/+2
|
* Return partial readsgingerBill2024-04-191-4/+15
|
* Only override the comma value on `*_init` if it is "invalid"gingerBill2024-04-192-2/+8
|
* Update numerous package declaration namesgingerBill2024-04-1825-25/+25
|
* Keep -vet happygingerBill2024-04-154-18/+17
|
* Merge pull request #3045 from laytan/cborgingerBill2024-04-157-47/+3713
|\ | | | | encoding/cbor
| * encoding/cbor: rename `diagnose` to `to_diagnostic_format` to be clearerLaytan Laats2024-03-042-14/+14
| |
| * encoding/cbor: respect default to panic allocatorLaytan2024-03-041-1/+1
| |
| * encoding/cbor: make temp allocations more explicitLaytan2024-03-044-114/+62
| |
| * encoding/cbor: core -> baseLaytan2024-03-045-8/+13
| |
| * encoding/cbor: remove usage of incl_elem and excl_elemLaytan2024-03-041-4/+4
| |
| * encoding/cbor: adhere to new quaternion rules of masterLaytan Laats2024-03-041-3/+3
| |
| * encoding/cbor: add general docs and exampleLaytan Laats2024-03-045-11/+149
| |
| * encoding/cbor: deterministically store bit sets as big endianLaytan Laats2024-03-043-26/+8
| |
| * encoding/cbor: ignore struct fields with `cbor:"-"`Laytan Laats2024-03-042-10/+31
| |
| * encoding/cbor: cleanLaytan Laats2024-03-041-3/+2
| |
| * encoding/cbor: fix wrong allocator bugLaytan Laats2024-03-041-3/+2
| |
| * encoding/cbor: clean and fixup some allocationsLaytan Laats2024-03-043-32/+25
| |
| * encoding/cbor: cleanup comments about tagsLaytan Laats2024-03-041-12/+13
| |
| * encoding/cbor: cleanup default temp allocatorLaytan Laats2024-03-044-35/+77
| |
| * encoding/cbor: don't zero bytes we are going to write/read to/from anywayLaytan Laats2024-03-041-16/+16
| |
| * encoding/cbor: minor thingsLaytan Laats2024-03-043-4/+6
| |
| * encoding/cbor: add decoder flags and protect from malicious untrusted inputLaytan Laats2024-03-044-226/+335
| |
| * encoding/cbor: fully support marshal/unmarshal of unionsLaytan Laats2024-03-043-6/+105
| |
| * encoding/cbor: cleanup base64 tagLaytan Laats2024-03-041-50/+62
| |
| * encoding/base64: add decode_into, add testsLaytan Laats2024-03-041-43/+90
| |
| * encoding/cbor: initial package implementationLaytan Laats2024-03-046-47/+3316
| |
* | Add `json:"name,omitempty"`gingerBill2024-04-102-10/+60
| |
* | Allow for comma-separate json names `json:"name,flag"`gingerBill2024-04-102-1/+11
| |
* | correct newly found vetsLaytan Laats2024-04-033-14/+13
| |
* | Json: improved unmarshalling of `using _: T` fields.Franz Höltermann2024-03-271-9/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `using _: T` fields will now have their members unmarshalled to their parent types reflecting the new behaviour of json.marshall. Example: ```go A :: struct { using _: B, } B :: struct { field: string, } data := `{"field": "Hello World"}` a: A json.unmarshal_string(data, &a) ```
* | Json: fields on structs like 'using _: T' will now have T's fieldsFranz Höltermann2024-03-261-14/+27
| | | | | | | | | | | | marshalled directly into the parent type without an '"_":{ ... }'. This seems like desirable behavior to me, since you can't access the fields with 'Parent_Type._.field' either.
* | Merge pull request #3215 from blob1807/json-better-enum-supportgingerBill2024-03-061-1/+15
|\ \ | | | | | | core:encoding/json Add support for writing enum value names
| * | Apply suggestions from code review blob18072024-03-041-2/+2
| | | | | | | | | | | | | | | Fixing spelling mistakes pointed out & fixed by layton. Co-authored-by: Laytan <laytanlaats@hotmail.com>
| * | convert spaces to tabsblob18072024-03-041-1/+1
| | |
| * | Return underlining value instead of panicingblob18072024-03-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | when no name it found. Renamed use_enum_value_names to use_enum_names it get the same point across & inline with the reflect procs
| * | changed to use reflect.enum_name_from_value_anyblob18072024-03-011-34/+2
| | |
| * | Merge branch 'odin-lang:master' into json-better-enum-supportblob18072024-03-011-0/+3
| |\|
| * | add all inter types to switchblob18072024-02-211-3/+27
| | |