Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/goccy/go-yaml
/ functions
Functions
1,184 in github.com/goccy/go-yaml
⨍
Functions
1,184
◇
Types & classes
217
↓ 151 callers
Method
Type
Type returns type of node
ast/ast.go:181
↓ 127 callers
Method
String
String node to text
ast/ast.go:177
↓ 96 callers
Method
RawToken
()
parser/token.go:68
↓ 91 callers
Method
GetToken
GetToken returns token instance
ast/ast.go:179
↓ 74 callers
Function
ErrSyntax
ErrSyntax create syntax error instance with message and token
internal/errors/error.go:75
↓ 58 callers
Method
addOriginBuf
(r rune)
scanner/context.go:292
↓ 57 callers
Function
New
New create reserved keyword token or number token and other string token.
token/token.go:734
↓ 51 callers
Method
progressColumn
(ctx *Context, num int)
scanner/scanner.go:95
↓ 50 callers
Method
currentToken
()
parser/context.go:43
↓ 48 callers
Method
pos
()
scanner/scanner.go:57
↓ 47 callers
Method
Error
()
ast/ast.go:2349
↓ 46 callers
Method
AddColumn
AddColumn add column number to child nodes recursively
ast/ast.go:183
↓ 43 callers
Function
ParseBytes
ParseBytes parse from byte slice, and returns ast.File
parser/parser.go:21
↓ 40 callers
Method
goNext
()
parser/context.go:109
↓ 32 callers
Method
Decode
Decode reads the next YAML-encoded value from its input and stores it in the value pointed to by v. See the documentation for Unmarshal for details a
decode.go:1987
↓ 32 callers
Method
GetPath
GetPath returns YAMLPath for the current node
ast/ast.go:189
↓ 30 callers
Method
Line
()
parser/token.go:98
↓ 29 callers
Method
Child
Child add '.name' to current path.
path.go:443
↓ 29 callers
Method
Column
()
parser/token.go:108
↓ 29 callers
Method
addToken
(tk *token.Token)
scanner/context.go:265
↓ 28 callers
Method
SetPath
SetPath set YAMLPath for the current node
ast/ast.go:191
↓ 27 callers
Method
GetComment
Comment returns comment token instance
ast/ast.go:187
↓ 27 callers
Function
enosys
()
docs/playground/src/wasm_exec.js:8
↓ 27 callers
Method
pos
(column int)
encode.go:516
↓ 26 callers
Method
clear
()
scanner/context.go:63
↓ 26 callers
Method
withGroup
(g *TokenGroup)
parser/context.go:76
↓ 24 callers
Method
GroupType
()
parser/token.go:88
↓ 24 callers
Method
origin
(tk *token.Token)
internal/format/format.go:286
↓ 23 callers
Function
setLineComment
(ctx *context, node ast.Node, tk *Token)
parser/node.go:229
↓ 22 callers
Function
ErrInvalidToken
(tk *token.Token)
scanner/error.go:13
↓ 22 callers
Function
Invalid
(err string, org string, pos *Position)
token/token.go:1152
↓ 22 callers
Function
readNode
(p []byte, node Node)
ast/ast.go:272
↓ 21 callers
Function
Tokenize
Tokenize split to token instances from string
lexer/lexer.go:11
↓ 21 callers
Method
createNode
(graph *graphviz.Graph, name string)
docs/playground/cmd/yaml/main.go:245
↓ 20 callers
Method
createNodeGraph
(parent *graphviz.Graph, node any, name string)
docs/playground/cmd/yaml/main.go:232
↓ 19 callers
Method
renderCommentGroupNode
(graph *graphviz.Graph, n *ast.CommentGroupNode, pos yaml.CommentPosition)
docs/playground/cmd/yaml/main.go:816
↓ 18 callers
Method
Value
Value returns the value of the iterator's current map node entry.
ast/ast.go:1172
↓ 18 callers
Method
addBufferedTokenIfExists
(ctx *Context)
scanner/scanner.go:206
↓ 18 callers
Method
formatCommentGroup
(g *ast.CommentGroupNode)
internal/format/format.go:467
↓ 18 callers
Function
walkComment
(v Visitor, base *BaseNode)
ast/ast.go:2226
↓ 17 callers
Method
Encode
Encode writes the YAML encoding of v to the stream. If multiple items are encoded to the stream, the second and subsequent document will be preceded w
encode.go:85
↓ 17 callers
Function
format
(attrs ...ColorAttribute)
printer/color.go:60
↓ 16 callers
Method
Build
Build build YAMLPath.
path.go:454
↓ 16 callers
Method
Root
Root add '$' to current path.
path.go:394
↓ 16 callers
Method
existsBuffer
()
scanner/context.go:362
↓ 16 callers
Method
nodeToValue
(ctx context.Context, node ast.Node)
decode.go:345
↓ 16 callers
Method
renderPath
(graph *graphviz.Graph, p string)
docs/playground/cmd/yaml/main.go:833
↓ 15 callers
Function
builder
()
path_test.go:14
↓ 14 callers
Method
createEdge
(fromGraph *graphviz.Graph, fromNode *graphviz.Node, toGraph *graphviz.Graph)
docs/playground/cmd/yaml/main.go:256
↓ 14 callers
Function
format
(attr color.Attribute)
cmd/ycat/ycat.go:18
↓ 13 callers
Method
Index
Index add '[idx]' to current path.
path.go:448
↓ 13 callers
Method
Next
Next advances the map iterator and reports whether there is another entry. It returns false when the iterator is exhausted.
ast/ast.go:1160
↓ 13 callers
Function
Tag
Tag create token for Tag
token/token.go:1029
↓ 13 callers
Method
formatNode
(n ast.Node)
internal/format/format.go:423
↓ 13 callers
Method
isExceededMaxDepth
()
decode.go:81
↓ 13 callers
Method
renderToken
(graph *graphviz.Graph, tk *token.Token)
docs/playground/cmd/yaml/main.go:845
↓ 13 callers
Method
stepIn
()
decode.go:73
↓ 13 callers
Method
stepOut
()
decode.go:77
↓ 12 callers
Method
Last
()
parser/token.go:159
↓ 12 callers
Function
addCommentString
(base string, node *CommentGroupNode)
ast/ast.go:222
↓ 11 callers
Method
Add
Add append new some tokens
token/token.go:870
↓ 11 callers
Method
First
()
parser/token.go:152
↓ 11 callers
Method
FormatError
(bool, bool)
internal/errors/error.go:28
↓ 11 callers
Method
IsMergeKey
()
ast/ast.go:205
↓ 11 callers
Method
MapRange
()
ast/ast.go:1145
↓ 11 callers
Method
isNewLineChar
(c rune)
scanner/scanner.go:124
↓ 11 callers
Function
newNullNode
(ctx *context, tk *Token)
parser/node.go:87
↓ 11 callers
Method
parseToken
(ctx *context, tk *Token)
parser/parser.go:176
↓ 11 callers
Method
renderNode
(graph *graphviz.Graph, node ast.Node)
docs/playground/cmd/yaml/main.go:327
↓ 10 callers
Function
ErrTypeMismatch
ErrTypeMismatch cerates an type mismatch error instance with token.
internal/errors/error.go:92
↓ 10 callers
Method
Key
Key returns the key of the iterator's current map node entry.
ast/ast.go:1167
↓ 10 callers
Method
PrintErrorToken
(tk *token.Token, isColored bool)
printer/printer.go:331
↓ 10 callers
Function
checkRawValue
(t *testing.T, v yaml.RawMessage, expected T)
yaml_test.go:268
↓ 10 callers
Method
encodeValue
(ctx context.Context, v reflect.Value, column int)
encode.go:443
↓ 10 callers
Method
isTokenNotFound
()
parser/context.go:72
↓ 10 callers
Function
resolve
(...pathSegments)
docs/playground/src/wasm_exec.js:78
↓ 9 callers
Method
SetComment
SetComment set comment token to node
ast/ast.go:185
↓ 9 callers
Function
String
String create node for string value
ast/ast.go:402
↓ 9 callers
Method
isComment
()
parser/context.go:50
↓ 9 callers
Method
progressLine
(ctx *Context)
scanner/scanner.go:106
↓ 8 callers
Method
GetValue
()
ast/ast.go:213
↓ 8 callers
Method
SetIsFlowStyle
(bool)
parser/parser_test.go:1865
↓ 8 callers
Method
getMapNode
(node ast.Node, isMerge bool)
decode.go:547
↓ 8 callers
Function
newStringNode
(ctx *context, tk *Token)
parser/node.go:141
↓ 8 callers
Method
nextToken
()
parser/context.go:54
↓ 8 callers
Method
parseScalarValue
(ctx *context, tk *Token)
parser/parser.go:271
↓ 8 callers
Method
progress
(ctx *Context, num int)
scanner/scanner.go:119
↓ 8 callers
Function
response
(v any, err error)
docs/playground/cmd/yaml/main.go:23
↓ 7 callers
Method
FilterFile
FilterFile filter from ast.File by YAMLPath.
path.go:259
↓ 7 callers
Method
addBuf
(r rune)
scanner/context.go:272
↓ 7 callers
Function
contentHeight
()
docs/playground/src/App.tsx:32
↓ 7 callers
Method
createImplicitNullToken
(base *Token)
parser/context.go:143
↓ 6 callers
Function
ErrUnexpectedNodeType
(actual, expected ast.NodeType, tk *token.Token)
internal/errors/error.go:116
↓ 6 callers
Function
FormatError
(errMsg string, token *token.Token, colored, inclSource bool)
internal/errors/error.go:235
↓ 6 callers
Method
Len
Len returns length of array
ast/ast.go:1542
↓ 6 callers
Function
MappingValue
MappingValue create node for mapping value
ast/ast.go:450
↓ 6 callers
Method
StringWithSpace
(col int)
ast/ast.go:2132
↓ 6 callers
Method
UnmarshalYAML
(ast.Node)
yaml.go:62
↓ 6 callers
Method
bufferedSrc
()
scanner/context.go:370
↓ 6 callers
Method
createDecodedNewValue
( ctx context.Context, typ reflect.Type, defaultVal reflect.Value, node ast.Node, )
decode.go:1088
next →
1–100 of 1,184, ranked by callers