Shuhei Kitagawa
|
c8cc5c583f
|
Fix indentation for raw string newlines (#625)
https://github.com/goccy/go-yaml/issues/292
|
2025-01-31 10:27:06 +09:00 |
|
Masaaki Goshima
|
9cbf5d4217
|
Fix encoding of anchor and alias (#605)
* fix encoding of anchor and alias
* fix alias
* fix lint error
|
2024-12-23 10:25:20 +09:00 |
|
Masaaki Goshima
|
beec790be2
|
fix encoding with map key contains colon character (#604)
|
2024-12-22 20:28:28 +09:00 |
|
Oleksandr Redko
|
342293d734
|
Replace fmt.Sprint with faster alternatives (#555)
|
2024-12-13 00:31:35 +09:00 |
|
Masaaki Goshima
|
548bbc7d4e
|
Remove xerrors (#483)
* remove xerrors
* move error variable
* update dependencies
|
2024-10-28 21:24:15 +09:00 |
|
Shuhei Kitagawa
|
8ad318cffc
|
Add lint job to CI (#477)
|
2024-10-28 11:31:15 +09:00 |
|
Kenta Mori
|
f5c5711fc6
|
fix: skip encoding an inline field if it is null (#386)
|
2023-09-13 17:17:47 +09:00 |
|
Masaaki Goshima
|
4052b059bc
|
Supports dynamically switch encode and decode processing for a given type (#368)
|
2023-04-02 10:50:03 +09:00 |
|
Masaaki Goshima
|
15640065c7
|
Fix comment option (#349)
|
2023-03-01 16:59:07 +09:00 |
|
Masaaki Goshima
|
458cd4e1cc
|
care map node (#334)
|
2022-12-19 14:26:21 +09:00 |
|
Masaaki Goshima
|
45bdea2a27
|
fix custom marshaler (#333)
|
2022-12-19 13:48:03 +09:00 |
|
Masaaki Goshima
|
bc437e1a54
|
Merge pull request #270 from igorpeshansky/fix-flow-mode-quotes
Quote strings with special characters in flow mode.
|
2022-10-26 17:43:50 +09:00 |
|
zoncoen
|
548aa0527d
|
fix: insert a separator between each encoded document
Fix the behavior as the comment.
|
2022-10-25 01:13:00 +09:00 |
|
itchyny
|
f7e91246a5
|
Introduce MapKeyNode interface to limit node types for map key
|
2022-08-18 16:16:40 +09:00 |
|
Masaaki Goshima
|
d6e2aed126
|
Fix encoding of BytesMarshaler type
|
2022-01-11 18:15:12 +09:00 |
|
Igor Peshansky
|
450c46a149
|
Quote strings with special characters in flow mode.
|
2021-11-23 00:02:43 -05:00 |
|
Viktor Stanchev
|
e8c5eef27a
|
add UseSingleQuote option
|
2021-11-06 02:53:14 +00:00 |
|
Quentin Smith
|
02069998ec
|
Merge remote-tracking branch 'upstream/master' into duration
|
2021-08-24 16:44:27 -04:00 |
|
Quentin Smith
|
ad99694948
|
Fix encoding of large floats
An extra ".0" was getting appended when the value of the float was a
power of 10.
|
2021-08-16 16:31:14 -04:00 |
|
Quentin Smith
|
adc9a196b2
|
Encode and decode time.Duration fields (#201)
This uses `time.ParseDuration` and `time.Duration.String`, and is
compatible with gopkg.in/yaml's encoding.
|
2021-08-11 15:07:04 -04:00 |
|
Viktor Stanchev
|
d51bcc85fc
|
fix bug in encoding nested sequences with IndentSequence
|
2021-08-09 14:06:30 +00:00 |
|
Masaaki Goshima
|
225a4d7167
|
Refactor
|
2021-07-20 15:03:36 +09:00 |
|
Masaaki Goshima
|
43175b6e44
|
Support WithComment option
|
2021-07-20 14:26:02 +09:00 |
|
Ryo Kitagawa
|
036fc04cd4
|
Merge branch 'master' into support-defined-type-key
|
2021-06-30 14:34:11 +09:00 |
|
Ryo Kitagawa
|
bae5ef26e0
|
Use fmt.Sprint
|
2021-06-30 14:32:52 +09:00 |
|
Florian Rey
|
4768d503b1
|
Support sequence indentation
|
2021-06-29 16:35:54 +02:00 |
|
Ryo Kitagawa
|
f3614c79b6
|
Support to encode map which has defined type key
|
2021-06-26 20:38:11 +09:00 |
|
Masaaki Goshima
|
0031d860a6
|
Fix encoding of float value
|
2021-03-01 16:17:23 +09:00 |
|
Masaaki Goshima
|
7ea1684d4c
|
Merge pull request #164 from cmaster11/multiline-block-fix
Add `UseLiteralStyleIfMultiLine` option
|
2020-11-19 17:55:17 +09:00 |
|
Alberto Marchetti
|
6a3fb60539
|
* Addressed PR comments
|
2020-11-19 10:15:56 +02:00 |
|
Alberto Marchetti
|
b2c149ae52
|
Merge remote-tracking branch 'origin/multiline-block-fix' into multiline-block-fix
# Conflicts:
# encode.go
|
2020-11-18 07:36:24 +02:00 |
|
Alberto Marchetti
|
47f32d7bb0
|
* Addressed PR comments
* Added support for encode options in encoder test
|
2020-11-18 07:35:17 +02:00 |
|
Masaaki Goshima
|
754055144c
|
Fix flow style for composite type
|
2020-11-13 11:54:59 +09:00 |
|
Masaaki Goshima
|
e6e2ae45c0
|
Support encoding for array type
|
2020-11-12 19:17:56 +09:00 |
|
Masaaki Goshima
|
d68128d154
|
Add MarshalWithContext and UnmarshalWithContext
|
2020-11-11 19:27:58 +09:00 |
|
Alberto Marchetti
|
19ecaa472c
|
Merge branch 'master' into multiline-block-fix
|
2020-11-03 07:05:16 +02:00 |
|
Masaaki Goshima
|
c395c330c5
|
Add UseJSONMarshaler option for encoder and UseJSONUnmarshaler option for decoder
|
2020-10-26 19:00:49 +09:00 |
|
Alberto Marchetti
|
d82b4091f5
|
* force block as option
* more tests
|
2020-10-05 06:18:09 +03:00 |
|
Masaaki Goshima
|
41c7fbad9f
|
Add EncodeToNode(interface{}) (ast.Node, error)
|
2020-07-15 22:17:04 +09:00 |
|
Masaaki Goshima
|
23d3128925
|
Support io.Reader interface on ast.Node
|
2020-07-15 22:16:27 +09:00 |
|
Masaaki Goshima
|
bb698f096d
|
Supports encoding in JSON format
|
2020-06-02 19:56:02 +09:00 |
|
k1LoW
|
4474453ee2
|
Remove unneccesary code
|
2020-03-09 21:59:00 +09:00 |
|
k1LoW
|
38cc1a72b5
|
Fix empty map encoding style
|
2020-03-07 09:50:32 +09:00 |
|
Masaaki Goshima
|
780ef7c7a1
|
Support encoding for struct field with inline and anchor
|
2020-03-02 22:58:50 +09:00 |
|
Masaaki Goshima
|
fee8ac5323
|
Merge pull request #81 from k1LoW/empty-slice-and-nil-slice2
Encode both empty and nil slices into `[]`
|
2020-02-14 17:59:51 +09:00 |
|
k1LoW
|
7286d81808
|
Encode both empty and nil slices into []
|
2020-02-14 17:28:54 +09:00 |
|
Kyoichiro Yamada
|
81b7b6d4a7
|
support encoding.TextMarshaler and encoding.TextUnmarshaler
|
2020-01-12 02:50:51 +09:00 |
|
Masaaki Goshima
|
3544475f12
|
Support MarshalAnchor option for encoder
|
2020-01-09 13:33:10 +09:00 |
|
Masaaki Goshima
|
a357645772
|
Fix calculating indent number at encoding
|
2019-12-12 17:38:01 +09:00 |
|
Masaaki Goshima
|
928f27cb22
|
Fix encoding for time type
|
2019-11-07 21:14:36 +09:00 |
|