- Append new line at the end of file ( #329 )
- Fix custom marshaler ( #333, #334 )
- Fix behavior when struct fields conflicted( #335 )
- Fix position calculation for literal, folded and raw folded strings ( #330 )
- Fix handling of quoted map key ( #328 )
- Fix resusing process of scanning context ( #322 )
- Introduce MapKeyNode interface to limit node types for map key ( #312 )
- Quote strings with special characters in flow mode ( #270 )
- typeError implements PrettyPrinter interface ( #280 )
- Fix incorrect const type ( #284 )
- Fix large literals type inference on 32 bits ( #293 )
- Fix UTF-8 characters ( #294 )
- Fix decoding of unknown aliases ( #317 )
- Fix stream encoder for insert a separator between each encoded document ( #318 )
- Update golang.org/x/sys ( #289 )
- Update Go version in CI ( #295 )
- Add test cases for missing keys to struct literals ( #300 )
- Add UseSingleQuote option ( #265 )
- Preserve defaults while decoding nested structs ( #260 )
- Fix minor typo in decodeInit error ( #264 )
- Handle empty sequence entries ( #275 )
- Fix encoding of sequence with multiline string ( #276 )
- Fix encoding of BytesMarshaler type ( #277 )
- Fix indentState logic for multi-line value ( #278 )
- Keep prev/next reference between tokens containing comments when filtering comment tokens ( #257 )
- Supports escaping reserved keywords in PathBuilder ( #258 )
- Support encoding and decoding
time.Duration
fields ( #246 ) - Allow reserved characters for key name in YAMLPath ( #251 )
- Support getting YAMLPath from ast.Node ( #252 )
- Support CommentToMap option ( #253 )
- Fix encoding nested sequences with
yaml.IndentSequence
( #241 ) - Fix error reporting on inline structs in strict mode ( #244, #245 )
- Fix encoding of large floats ( #247 )
- Migrate CI from CircleCI to GitHub Action ( #249 )
- Add workflow for ycat ( #250 )
yaml.WithComment
is a option for encoding with comment.
The position where you want to add a comment is represented by YAMLPath, and it is the key of yaml.CommentMap
.
Also, you can select Head
comment or Line
comment as the comment type.
- Fix YAML handling where anchor exists
- Support encoding of comment node ( #233 )
- Support
yaml.NodeToValue(ast.Node, interface{}, ...DecodeOption) error
( #236 )- Can convert a AST node to a value directly
- Fix parsing of literal with comment ( #234 )
- Rename
MarshalWithContext
toMarshalContext
- Rename
UnmarshalWithContext
toUnmarshalContext
- Fix searching anchor by alias name ( #212 )
- Fixing Issue 186, scanner should account for newline characters when processing multi-line text. Without this source annotations line/column number (for this and all subsequent tokens) is inconsistent with plain text editors. e.g. goccy#186. This addresses the issue specifically for single and double quote text only. ( #210 )
- Add error for unterminated flow mapping node ( #213 )
- Handle missing required field validation ( #221 )
- Nicely format unexpected node type errors ( #229 )
- Support to encode map which has defined type key ( #231 )
- Support sequence indentation by EncodeOption ( #232 )
- Fix origin buffer for DocumentHeader and DocumentEnd and Directive
- Fix origin buffer for anchor value
- Fix syntax error about map value
- Fix parsing MergeKey ('<<') characters
- Fix encoding of float value
- Fix incorrect column annotation when single or double quotes are used
- Support to encode/decode of ast.Node directly