MCPcopy Index your code

hub / github.com/goccy/go-yaml / functions

Functions1,184 in github.com/goccy/go-yaml

↓ 151 callersMethodType
Type returns type of node
ast/ast.go:181
↓ 127 callersMethodString
String node to text
ast/ast.go:177
↓ 96 callersMethodRawToken
()
parser/token.go:68
↓ 91 callersMethodGetToken
GetToken returns token instance
ast/ast.go:179
↓ 74 callersFunctionErrSyntax
ErrSyntax create syntax error instance with message and token
internal/errors/error.go:75
↓ 58 callersMethodaddOriginBuf
(r rune)
scanner/context.go:292
↓ 57 callersFunctionNew
New create reserved keyword token or number token and other string token.
token/token.go:734
↓ 51 callersMethodprogressColumn
(ctx *Context, num int)
scanner/scanner.go:95
↓ 50 callersMethodcurrentToken
()
parser/context.go:43
↓ 48 callersMethodpos
()
scanner/scanner.go:57
↓ 47 callersMethodError
()
ast/ast.go:2349
↓ 46 callersMethodAddColumn
AddColumn add column number to child nodes recursively
ast/ast.go:183
↓ 43 callersFunctionParseBytes
ParseBytes parse from byte slice, and returns ast.File
parser/parser.go:21
↓ 40 callersMethodgoNext
()
parser/context.go:109
↓ 32 callersMethodDecode
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 callersMethodGetPath
GetPath returns YAMLPath for the current node
ast/ast.go:189
↓ 30 callersMethodLine
()
parser/token.go:98
↓ 29 callersMethodChild
Child add '.name' to current path.
path.go:443
↓ 29 callersMethodColumn
()
parser/token.go:108
↓ 29 callersMethodaddToken
(tk *token.Token)
scanner/context.go:265
↓ 28 callersMethodSetPath
SetPath set YAMLPath for the current node
ast/ast.go:191
↓ 27 callersMethodGetComment
Comment returns comment token instance
ast/ast.go:187
↓ 27 callersFunctionenosys
()
docs/playground/src/wasm_exec.js:8
↓ 27 callersMethodpos
(column int)
encode.go:516
↓ 26 callersMethodclear
()
scanner/context.go:63
↓ 26 callersMethodwithGroup
(g *TokenGroup)
parser/context.go:76
↓ 24 callersMethodGroupType
()
parser/token.go:88
↓ 24 callersMethodorigin
(tk *token.Token)
internal/format/format.go:286
↓ 23 callersFunctionsetLineComment
(ctx *context, node ast.Node, tk *Token)
parser/node.go:229
↓ 22 callersFunctionErrInvalidToken
(tk *token.Token)
scanner/error.go:13
↓ 22 callersFunctionInvalid
(err string, org string, pos *Position)
token/token.go:1152
↓ 22 callersFunctionreadNode
(p []byte, node Node)
ast/ast.go:272
↓ 21 callersFunctionTokenize
Tokenize split to token instances from string
lexer/lexer.go:11
↓ 21 callersMethodcreateNode
(graph *graphviz.Graph, name string)
docs/playground/cmd/yaml/main.go:245
↓ 20 callersMethodcreateNodeGraph
(parent *graphviz.Graph, node any, name string)
docs/playground/cmd/yaml/main.go:232
↓ 19 callersMethodrenderCommentGroupNode
(graph *graphviz.Graph, n *ast.CommentGroupNode, pos yaml.CommentPosition)
docs/playground/cmd/yaml/main.go:816
↓ 18 callersMethodValue
Value returns the value of the iterator's current map node entry.
ast/ast.go:1172
↓ 18 callersMethodaddBufferedTokenIfExists
(ctx *Context)
scanner/scanner.go:206
↓ 18 callersMethodformatCommentGroup
(g *ast.CommentGroupNode)
internal/format/format.go:467
↓ 18 callersFunctionwalkComment
(v Visitor, base *BaseNode)
ast/ast.go:2226
↓ 17 callersMethodEncode
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 callersFunctionformat
(attrs ...ColorAttribute)
printer/color.go:60
↓ 16 callersMethodBuild
Build build YAMLPath.
path.go:454
↓ 16 callersMethodRoot
Root add '$' to current path.
path.go:394
↓ 16 callersMethodexistsBuffer
()
scanner/context.go:362
↓ 16 callersMethodnodeToValue
(ctx context.Context, node ast.Node)
decode.go:345
↓ 16 callersMethodrenderPath
(graph *graphviz.Graph, p string)
docs/playground/cmd/yaml/main.go:833
↓ 15 callersFunctionbuilder
()
path_test.go:14
↓ 14 callersMethodcreateEdge
(fromGraph *graphviz.Graph, fromNode *graphviz.Node, toGraph *graphviz.Graph)
docs/playground/cmd/yaml/main.go:256
↓ 14 callersFunctionformat
(attr color.Attribute)
cmd/ycat/ycat.go:18
↓ 13 callersMethodIndex
Index add '[idx]' to current path.
path.go:448
↓ 13 callersMethodNext
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 callersFunctionTag
Tag create token for Tag
token/token.go:1029
↓ 13 callersMethodformatNode
(n ast.Node)
internal/format/format.go:423
↓ 13 callersMethodisExceededMaxDepth
()
decode.go:81
↓ 13 callersMethodrenderToken
(graph *graphviz.Graph, tk *token.Token)
docs/playground/cmd/yaml/main.go:845
↓ 13 callersMethodstepIn
()
decode.go:73
↓ 13 callersMethodstepOut
()
decode.go:77
↓ 12 callersMethodLast
()
parser/token.go:159
↓ 12 callersFunctionaddCommentString
(base string, node *CommentGroupNode)
ast/ast.go:222
↓ 11 callersMethodAdd
Add append new some tokens
token/token.go:870
↓ 11 callersMethodFirst
()
parser/token.go:152
↓ 11 callersMethodFormatError
(bool, bool)
internal/errors/error.go:28
↓ 11 callersMethodIsMergeKey
()
ast/ast.go:205
↓ 11 callersMethodMapRange
()
ast/ast.go:1145
↓ 11 callersMethodisNewLineChar
(c rune)
scanner/scanner.go:124
↓ 11 callersFunctionnewNullNode
(ctx *context, tk *Token)
parser/node.go:87
↓ 11 callersMethodparseToken
(ctx *context, tk *Token)
parser/parser.go:176
↓ 11 callersMethodrenderNode
(graph *graphviz.Graph, node ast.Node)
docs/playground/cmd/yaml/main.go:327
↓ 10 callersFunctionErrTypeMismatch
ErrTypeMismatch cerates an type mismatch error instance with token.
internal/errors/error.go:92
↓ 10 callersMethodKey
Key returns the key of the iterator's current map node entry.
ast/ast.go:1167
↓ 10 callersMethodPrintErrorToken
(tk *token.Token, isColored bool)
printer/printer.go:331
↓ 10 callersFunctioncheckRawValue
(t *testing.T, v yaml.RawMessage, expected T)
yaml_test.go:268
↓ 10 callersMethodencodeValue
(ctx context.Context, v reflect.Value, column int)
encode.go:443
↓ 10 callersMethodisTokenNotFound
()
parser/context.go:72
↓ 10 callersFunctionresolve
(...pathSegments)
docs/playground/src/wasm_exec.js:78
↓ 9 callersMethodSetComment
SetComment set comment token to node
ast/ast.go:185
↓ 9 callersFunctionString
String create node for string value
ast/ast.go:402
↓ 9 callersMethodisComment
()
parser/context.go:50
↓ 9 callersMethodprogressLine
(ctx *Context)
scanner/scanner.go:106
↓ 8 callersMethodGetValue
()
ast/ast.go:213
↓ 8 callersMethodSetIsFlowStyle
(bool)
parser/parser_test.go:1865
↓ 8 callersMethodgetMapNode
(node ast.Node, isMerge bool)
decode.go:547
↓ 8 callersFunctionnewStringNode
(ctx *context, tk *Token)
parser/node.go:141
↓ 8 callersMethodnextToken
()
parser/context.go:54
↓ 8 callersMethodparseScalarValue
(ctx *context, tk *Token)
parser/parser.go:271
↓ 8 callersMethodprogress
(ctx *Context, num int)
scanner/scanner.go:119
↓ 8 callersFunctionresponse
(v any, err error)
docs/playground/cmd/yaml/main.go:23
↓ 7 callersMethodFilterFile
FilterFile filter from ast.File by YAMLPath.
path.go:259
↓ 7 callersMethodaddBuf
(r rune)
scanner/context.go:272
↓ 7 callersFunctioncontentHeight
()
docs/playground/src/App.tsx:32
↓ 7 callersMethodcreateImplicitNullToken
(base *Token)
parser/context.go:143
↓ 6 callersFunctionErrUnexpectedNodeType
(actual, expected ast.NodeType, tk *token.Token)
internal/errors/error.go:116
↓ 6 callersFunctionFormatError
(errMsg string, token *token.Token, colored, inclSource bool)
internal/errors/error.go:235
↓ 6 callersMethodLen
Len returns length of array
ast/ast.go:1542
↓ 6 callersFunctionMappingValue
MappingValue create node for mapping value
ast/ast.go:450
↓ 6 callersMethodStringWithSpace
(col int)
ast/ast.go:2132
↓ 6 callersMethodUnmarshalYAML
(ast.Node)
yaml.go:62
↓ 6 callersMethodbufferedSrc
()
scanner/context.go:370
↓ 6 callersMethodcreateDecodedNewValue
( ctx context.Context, typ reflect.Type, defaultVal reflect.Value, node ast.Node, )
decode.go:1088
next →1–100 of 1,184, ranked by callers