MCPcopy Create free account

hub / github.com/canopyclimate/golive / functions

Functions1,499 in github.com/canopyclimate/golive

↓ 170 callersMethodString
()
internal/text/template/parse/node.go:23
↓ 131 callersFunctionmkItem
(typ itemType, text string)
internal/text/template/parse/lex_test.go:64
↓ 120 callersMethodParse
Parse parses text as a template body for t. Named template definitions ({{define ...}} or {{block ...}} statements) in text define additional template
htmltmpl/template.go:187
↓ 97 callersFunctionNew
New allocates a new HTML template with the given name.
htmltmpl/template.go:285
↓ 95 callersMethodError
(string)
changeset/changeset.go:33
↓ 77 callersMethodExecute
Execute applies a parsed template to the specified data object, writing the output to wr. If an error occurs executing the template or writing its out
htmltmpl/template.go:121
↓ 76 callersMethodParse
Parse parses the template definition string to construct a representation of the template for execution. If either action delimiter string is empty, t
internal/text/template/parse/parse.go:245
↓ 73 callersFunctionMust
Must is a helper that wraps a call to a function returning (*Template, error) and panics if the error is non-nil. It is intended for use in variable i
htmltmpl/template.go:367
↓ 61 callersMethodType
()
internal/text/template/parse/node.go:22
↓ 57 callersFunctionNew
New allocates a new, undefined template with the given name.
internal/text/template/template.go:39
↓ 51 callersMethoderrorf
errorf records an ExecError and terminates processing.
internal/text/template/exec.go:151
↓ 48 callersMethodbinding
(kind)
public/js/index.js:4781
↓ 45 callersMethodpush
(event, payload, timeout = this.timeout)
public/js/index.js:547
↓ 41 callersMethodExecute
Execute applies a parsed template to the specified data object, and writes the output to wr. If an error occurs executing the template or writing its
internal/text/template/exec.go:222
↓ 38 callersMethodNew
New allocates a new HTML template associated with the given one and with the same delimiters. The association, which is transitive, allows one templat
htmltmpl/template.go:305
↓ 30 callersMethodlog
(kind, msg, data)
public/js/index.js:1056
↓ 28 callersMethodNew
New allocates a new, undefined template associated with the given one and with the same delimiters. The association, which is transitive, allows one t
internal/text/template/template.go:59
↓ 27 callersMethodClone
Clone returns a duplicate of the template, including all associated templates. The actual representation is not copied, but the name space of associat
htmltmpl/template.go:247
↓ 25 callersMethodLen
()
internal/fmtsort/sort.go:26
↓ 23 callersMethodExecuteTemplate
ExecuteTemplate applies the template associated with t that has the given name to the specified data object and writes the output to wr. If an error o
htmltmpl/template.go:135
↓ 23 callersFunctionct
(typ reflect.Type, args ...any)
internal/fmtsort/sort_test.go:47
↓ 23 callersMethodemit
emit passes the trailing text as an item back to the parser.
internal/text/template/parse/lex.go:179
↓ 22 callersMethodisConnected
()
public/js/index.js:1218
↓ 21 callersMethoddispatchEvent
(event, payload = {})
public/js/index.js:5410
↓ 19 callersMethodat
at marks the state to be on node n, for error reporting.
internal/text/template/exec.go:120
↓ 19 callersMethoderrorf
errorf formats the error and terminates processing.
internal/text/template/parse/parse.go:161
↓ 19 callersMethodindexOf
(parent, child)
public/js/index.js:3222
↓ 18 callersMethodName
Name returns the name of the template.
htmltmpl/template.go:328
↓ 18 callersMethodWrite
(p []byte)
internal/text/template/exec_test.go:1358
↓ 18 callersMethodmustExecute
(t *Template, val any, want string)
htmltmpl/template_test.go:210
↓ 18 callersMethodreceive
(status, callback)
public/js/index.js:379
↓ 17 callersMethodFuncs
Funcs adds the elements of the argument map to the template's function map. It must be called before the template is parsed. It panics if a value in t
htmltmpl/template.go:339
↓ 17 callersMethodadd
(kind string, options any)
live/js.go:58
↓ 16 callersMethodJSON
()
live/internal/phx/reply.go:207
↓ 16 callersFunctionNew
Parsing. New allocates a new parse tree with the given name.
internal/text/template/parse/parse.go:131
↓ 16 callersFunctionlogError
(msg, obj)
public/js/index.js:1503
↓ 15 callersMethodAppendStatic
(text string)
internal/tmpl/tree.go:26
↓ 15 callersMethodnextNonSpace
nextNonSpace returns the next non-space token.
internal/text/template/parse/parse.go:111
↓ 14 callersFunctionMust
Functions and methods to parse templates. Must is a helper that wraps a call to a function returning (*Template, error) and panics if the error is non
internal/text/template/helper.go:24
↓ 14 callersFunctionerrorf
errorf creates an error given a format string f and args. The template Name still needs to be supplied.
htmltmpl/error.go:243
↓ 14 callersMethoderrorf
errorf returns an error token and terminates the scan by passing back a nil pointer that will be the next state, terminating l.nextItem.
internal/text/template/parse/lex.go:216
↓ 14 callersMethodnext
next returns the next rune in the input.
internal/text/template/parse/lex.go:137
↓ 13 callersMethodUpdate
Update updates the changeset with new data and action. If action is empty, the changeset will always return true for Valid(). Passing a non-empty acti
changeset/changeset.go:99
↓ 13 callersMethodwriteString
(s string)
internal/tmpl/tree.go:158
↓ 13 callersMethodwriteTo
writeTo writes the String output to the builder.
internal/text/template/parse/node.go:33
↓ 12 callersMethodLookup
Lookup returns the template with the given name that is associated with t, or nil if there is no such template.
htmltmpl/template.go:356
↓ 12 callersMethodWriteTo
WriteTo writes a JSON representation of the tree to w.
internal/tmpl/tree.go:223
↓ 12 callersMethodhasLogger
()
public/js/index.js:1059
↓ 12 callersFunctionstringify
stringify converts its arguments to a string and the type of the content. All pointers are dereferenced, as in the text/template package.
htmltmpl/content.go:152
↓ 11 callersFunctionNewTree
()
internal/tmpl/tree.go:22
↓ 11 callersMethodaccept
accept consumes the next rune if it's from the valid set.
internal/text/template/parse/lex.go:199
↓ 11 callersMethodappend
(n Node)
internal/text/template/parse/node.go:93
↓ 11 callersFunctionindirectInterface
indirectInterface returns the concrete value in an interface value, or else the zero reflect.Value. That is, if v represents the interface value x, th
internal/text/template/exec.go:1080
↓ 11 callersMethodinit
init guarantees that t has a valid common structure.
internal/text/template/template.go:71
↓ 11 callersFunctionnewTestCase
(t *testing.T)
htmltmpl/template_test.go:185
↓ 11 callersMethodon
(event, callback)
public/js/index.js:534
↓ 11 callersMethodremove
(channel)
public/js/index.js:1221
↓ 11 callersMethodreset
()
public/js/index.js:386
↓ 10 callersMethodAppendDynamic
(d string)
internal/tmpl/tree.go:41
↓ 10 callersMethodExecuteTemplate
ExecuteTemplate applies the template associated with t that has the given name to the specified data object and writes the output to wr. If an error o
internal/text/template/exec.go:204
↓ 10 callersMethodFuncs
Funcs adds the elements of the argument map to the template's function map. It must be called before the template is parsed. It panics if a value in t
internal/text/template/template.go:178
↓ 10 callersMethodStruct
Struct returns the changeset Values decoded into a struct of T or an error if there was a problem decoding.
changeset/changeset.go:79
↓ 10 callersMethodmustParse
(t *Template, text string)
htmltmpl/template_test.go:196
↓ 10 callersMethodpushWithReply
(refGenerator, event, payload, onReply = function() { })
public/js/index.js:4339
↓ 10 callersMethodrequestDOMUpdate
(callback)
public/js/index.js:4938
↓ 10 callersMethodwithinOwners
(childEl, callback)
public/js/index.js:5104
↓ 9 callersMethodAdd
Add adds the named field (which should start with a period) to the end of the chain.
internal/text/template/parse/node.go:571
↓ 9 callersMethodCopyList
()
internal/text/template/parse/node.go:113
↓ 9 callersMethodEqual
(v *UploadMsg)
live/internal/phx/upload.go:17
↓ 9 callersMethodValue
(string)
changeset/changeset.go:32
↓ 9 callersMethodWrite
(p []byte)
htmltmpl/exec_test.go:1326
↓ 9 callersMethodbackup
backup steps back one rune.
internal/text/template/parse/lex.go:158
↓ 9 callersMethodisDestroyed
()
public/js/index.js:4258
↓ 9 callersMethodpeek
peek returns but does not consume the next token.
internal/text/template/parse/parse.go:101
↓ 9 callersMethodpeekNonSpace
peekNonSpace returns but does not consume the next non-space token.
internal/text/template/parse/parse.go:122
↓ 9 callersMethodsend
()
public/js/index.js:365
↓ 9 callersFunctionsocketValue
socketValue returns the socket, if any, associated with ctx.
live/liveview.go:927
↓ 9 callersFunctiontestExecute
(execTests []execTest, template *Template, t *testing.T)
htmltmpl/exec_test.go:767
↓ 9 callersMethodtoString
(onlyCids)
public/js/index.js:3242
↓ 8 callersMethodPosition
()
internal/text/template/parse/node.go:28
↓ 8 callersFunctionSetView
SetView marks r as corresponding to v. Its handler will result in a rendered LiveView.
live/route.go:35
↓ 8 callersMethodTemplates
Templates returns a slice of the templates associated with t, including t itself.
htmltmpl/template.go:47
↓ 8 callersFunctiondecodeCSS
decodeCSS decodes CSS3 escapes given a sequence of stringchars. If there is no change, it returns the input, otherwise it returns a slice backed by a
htmltmpl/css.go:58
↓ 8 callersFunctionisCid
(cid)
public/js/index.js:1504
↓ 8 callersFunctionmaybe
(el, callback)
public/js/index.js:1549
↓ 8 callersMethodmustNotParse
(t *Template, text string)
htmltmpl/template_test.go:203
↓ 8 callersFunctiontestExecute
(execTests []execTest, template *Template, t *testing.T)
internal/text/template/exec_test.go:777
↓ 8 callersMethodunexpected
unexpected complains about the token and terminates processing.
internal/text/template/parse/parse.go:191
↓ 8 callersMethodvalidateType
validateType guarantees that the value is valid and assignable to the type.
internal/text/template/exec.go:881
↓ 8 callersMethodwalk
Walk functions step through the major pieces of the template structure, generating output as they go.
internal/text/template/exec.go:280
↓ 7 callersMethodAddParseTree
AddParseTree creates a new template with the name and parse tree and associates it with t. It returns an error if t or any associated template has al
htmltmpl/template.go:218
↓ 7 callersMethodAppendSub
()
internal/tmpl/tree.go:45
↓ 7 callersMethodCopyPipe
()
internal/text/template/parse/node.go:235
↓ 7 callersMethodconnect
(params)
public/js/index.js:1038
↓ 7 callersMethodeq
eq reports whether two contexts are equal.
htmltmpl/context.go:40
↓ 7 callersMethodevalPipeline
Eval functions evaluate pipelines, commands, and their elements and extract values from the data structure by examining fields, calling methods, and s
internal/text/template/exec.go:528
↓ 7 callersFunctionexpectValuesAndChanges
(cs *Changeset[T], expectMatch bool, t *testing.T)
changeset/changeset_test.go:125
↓ 7 callersFunctionhtmlReplacer
htmlReplacer returns s with runes replaced according to replacementTable and when badRunes is true, certain bad runes are allowed through unescaped.
htmltmpl/html.go:144
↓ 7 callersMethodjoinRef
()
public/js/index.js:595
↓ 7 callersFunctionjsValEscaper
jsValEscaper escapes its inputs to a JS Expression (section 11.14) that has neither side-effects nor free variables outside (NaN, Infinity).
htmltmpl/js.go:149
next →1–100 of 1,499, ranked by callers