MCPcopy Create free account

hub / github.com/canopyclimate/golive / functions

Functions1,499 in github.com/canopyclimate/golive

↓ 7 callersMethodmakeRef
()
public/js/index.js:1248
↓ 7 callersMethodparse
parse is the top-level parser for a template, essentially the same as itemList except it also parses {{define}} actions. It runs to EOF.
internal/text/template/parse/parse.go:299
↓ 7 callersMethodtrackBefore
(kind, ...args)
public/js/index.js:2942
↓ 6 callersMethodAddParseTree
AddParseTree associates the argument parse tree with the template t, giving it the specified name. If the template has not been defined, this tree bec
internal/text/template/template.go:130
↓ 6 callersMethodClone
Clone returns a duplicate of the template, including all associated templates. The actual representation is not copied, but the name space of associat
internal/text/template/template.go:87
↓ 6 callersMethodCopy
Copy does a deep copy of the Node and all its components. To avoid type assertions, some XxxNodes also have specialized CopyXxx methods that return *X
internal/text/template/parse/node.go:27
↓ 6 callersMethodExecuteTree
ExecuteTree applies a parsed template to the specified data object, and returns a *tmpl.Tree. A template may be executed safely in parallel, although
internal/text/template/golive.go:19
↓ 6 callersMethodLookup
Lookup returns the template with the given name that is associated with t. It returns nil if there is no such template or the template has no definiti
internal/text/template/template.go:189
↓ 6 callersMethodName
Name returns the name of the template.
internal/text/template/template.go:48
↓ 6 callersFunctionParse
Parse returns a map from template name to parse.Tree, created by parsing the templates described in the argument string. The top-level template will b
internal/text/template/parse/parse.go:62
↓ 6 callersMethodParseGlob
ParseGlob parses the template definitions in the files identified by the pattern and associates the resulting templates with t. The files are matched
internal/text/template/helper.go:117
↓ 6 callersMethodPush
Push pushes an event to the server.
live/js.go:45
↓ 6 callersMethodShow
Show shows elements. When the action is triggered on the client, phx:show-start is dispatched to the shown elements. After the time specified by :time
live/js.go:32
↓ 6 callersMethodToggle
Toggle toggles element visibility. When the toggle is complete on the client, a phx:show-start or phx:hide-start, and phx:show-end or phx:hide-end eve
live/js.go:39
↓ 6 callersMethodactiveFiles
(input)
public/js/index.js:2226
↓ 6 callersMethodafter
(kind, callback)
public/js/index.js:2939
↓ 6 callersMethodbackup
backup backs the input stream up one token.
internal/text/template/parse/parse.go:81
↓ 6 callersMethodbind
(events, callback)
public/js/index.js:5266
↓ 6 callersMethoddestroy
(callback = function() { })
public/js/index.js:3829
↓ 6 callersFunctionequal
(i1, i2 []item, checkPos bool)
internal/text/template/parse/lex_test.go:412
↓ 6 callersMethodignore
ignore skips over the pending input before this point. It tracks newlines in the ignored text, so use it only for text that is skipped without calling
internal/text/template/parse/lex.go:192
↓ 6 callersMethodjoin
(timeout = this.timeout)
public/js/index.js:518
↓ 6 callersMethodnext
next returns the next token.
internal/text/template/parse/parse.go:71
↓ 6 callersFunctionnextJSCtx
nextJSCtx returns the context that determines whether a slash after the given run of tokens starts a regular expression instead of a division operator
htmltmpl/js.go:33
↓ 6 callersMethodownsElement
(el)
public/js/index.js:4766
↓ 6 callersMethodrenderToTree
(ctx context.Context)
live/liveview.go:774
↓ 6 callersMethodtargetComponentID
(target, targetCtx, opts = {})
public/js/index.js:4444
↓ 6 callersMethodtime
(name, func)
public/js/index.js:4920
↓ 6 callersMethodtrigger
(status, response)
public/js/index.js:425
↓ 6 callersMethodunload
()
public/js/index.js:4906
↓ 5 callersMethodClose
()
examples/main.go:270
↓ 5 callersMethodHide
Hide hides elements. When the action is triggered on the client, phx:hide-start is dispatched to the hidden elements. After the time specified by :tim
live/js.go:25
↓ 5 callersFunctionIsEmptyTree
IsEmptyTree reports whether this tree (node) is empty of everything but space or comments.
internal/text/template/parse/parse.go:270
↓ 5 callersMethodJSON
JSON returns a JSON representation of the tree.
internal/tmpl/tree.go:124
↓ 5 callersMethodMarshalJSON
()
live/internal/phx/reply.go:211
↓ 5 callersMethodUnmarshalBinary
(data []byte)
live/internal/phx/upload.go:21
↓ 5 callersMethodValid
Valid returns true if the changeset is valid or false if it is not. Valid depends on the last action that was performed on the changeset along with th
changeset/changeset.go:60
↓ 5 callersMethodclose
(code, reason, wasClean)
public/js/index.js:815
↓ 5 callersFunctionclosestPhxBinding
(el, binding, borderEl)
public/js/index.js:1530
↓ 5 callersFunctionclosure
(value)
public/js/index.js:309
↓ 5 callersFunctioncollect
collect gathers the emitted items into a slice.
internal/text/template/parse/lex_test.go:395
↓ 5 callersFunctioncreateTestDir
(files []templateFile)
htmltmpl/examplefiles_test.go:22
↓ 5 callersMethodemitItem
emitItem passes the specified item to the parser.
internal/text/template/parse/lex.go:184
↓ 5 callersMethodeventMeta
(eventName, e, targetEl)
public/js/index.js:5242
↓ 5 callersMethodexecJS
(el, encodedJS, eventType = null)
public/js/index.js:4903
↓ 5 callersMethodgenFileRef
(file)
public/js/index.js:2163
↓ 5 callersFunctionindirect
indirect returns the item at the end of indirection, and a bool to indicate if it's nil. If the returned bool is true, the returned value's kind will
internal/text/template/exec.go:1067
↓ 5 callersFunctionisComment
isComment is true for any state that contains content meant for template authors & maintainers, not for end-users or machines.
htmltmpl/context.go:161
↓ 5 callersFunctionisHex
isHex reports whether the given character is a hex digit.
htmltmpl/css.go:104
↓ 5 callersFunctionisObject
(obj)
public/js/index.js:1539
↓ 5 callersFunctionisSpace
isSpace reports whether r is a space character.
internal/text/template/parse/lex.go:671
↓ 5 callersMethodlookup
(name string)
htmltmpl/template_test.go:192
↓ 5 callersMethodmark
mark returns the length of the variable stack.
internal/text/template/exec.go:70
↓ 5 callersMethodonClose
(callback)
public/js/index.js:528
↓ 5 callersMethodonError
(callback)
public/js/index.js:531
↓ 5 callersMethodonRedirect
({ to, flash })
public/js/index.js:4255
↓ 5 callersMethodpipeline
Pipeline: declarations? command ('|' command)*
internal/text/template/parse/parse.go:454
↓ 5 callersMethodputRef
(elements, event, opts = {})
public/js/index.js:4417
↓ 5 callersMethodredirect
(to, flash)
public/js/index.js:5056
↓ 5 callersMethodscheduleTimeout
()
public/js/index.js:440
↓ 5 callersMethodstopParse
stopParse terminates parsing.
internal/text/template/parse/parse.go:234
↓ 5 callersFunctionstripTags
stripTags takes a snippet of HTML and returns only the text content. For example, `<b>&iexcl;Hi!</b> <script>...</script>` -> `&iexcl;Hi! `.
htmltmpl/html.go:181
↓ 5 callersFunctiontestExec
(t *testing.T, funcs htmltmpl.FuncMap, tmpl, wantJSON, wantPlain string, dot dot)
internal/tmpl/tree_test.go:42
↓ 5 callersMethodthisItem
thisItem returns the item at the current input point with the specified type and advances the input.
internal/text/template/parse/lex.go:171
↓ 5 callersMethodtrackAfter
(kind, ...args)
public/js/index.js:2945
↓ 5 callersMethodwithPageLoading
(info, callback)
public/js/index.js:5416
↓ 5 callersMethodwriteBytes
(p []byte)
internal/tmpl/tree.go:140
↓ 5 callersMethodwriteLeadingComma
(i int)
internal/tmpl/tree.go:200
↓ 4 callersMethodErrorContext
ErrorContext returns a textual representation of the location of the node in the input text. The receiver is only used when the node does not have a p
internal/text/template/parse/parse.go:141
↓ 4 callersMethodHandleParams
(context.Context, *url.URL)
live/liveview.go:194
↓ 4 callersMethodIncRangeStep
IncRangeStep records that a single range iteration has completed it.
internal/tmpl/tree.go:61
↓ 4 callersFunctionNewIdentifier
NewIdentifier returns a new IdentifierNode with the given identifier name.
internal/text/template/parse/node.go:352
↓ 4 callersFunctionNewReplyDiff
(msg Msg, diff []byte)
live/internal/phx/reply.go:112
↓ 4 callersMethodParseFiles
ParseFiles parses the named files and associates the resulting templates with t. If an error occurs, parsing stops and the returned template is nil; o
htmltmpl/template.go:395
↓ 4 callersFunctionParseGlob
ParseGlob creates a new Template and parses the template definitions from the files identified by the pattern. The files are matched according to the
internal/text/template/helper.go:105
↓ 4 callersMethodParseGlob
ParseGlob parses the template definitions in the files identified by the pattern and associates the resulting templates with t. The files are matched
htmltmpl/template.go:462
↓ 4 callersMethodSetPos
SetPos sets the position. NewIdentifier is a public method so we can't modify its signature. Chained for convenience. TODO: fix one day?
internal/text/template/parse/node.go:359
↓ 4 callersMethodSetTree
SetTree sets the parent tree for the node. NewIdentifier is a public method so we can't modify its signature. Chained for convenience. TODO: fix one d
internal/text/template/parse/node.go:367
↓ 4 callersMethodacceptRun
acceptRun consumes a run of runes from the valid set.
internal/text/template/parse/lex.go:208
↓ 4 callersMethodadd
add adds tree to t.treeSet.
internal/text/template/parse/parse.go:258
↓ 4 callersFunctionaddKeyedRemoval
(key)
public/js/index.js:2657
↓ 4 callersMethodapplyJoinPatch
(live_patch, html, streams, events)
public/js/index.js:3979
↓ 4 callersMethodatTerminator
atTerminator reports whether the input is at valid termination character to appear after an identifier. Breaks .X.Y into two pieces. Also catches case
internal/text/template/parse/lex.go:550
↓ 4 callersFunctionbasicKind
(v reflect.Value)
internal/text/template/funcs.go:420
↓ 4 callersFunctionbuiltins
builtins returns the FuncMap. It is not a global variable so the linker can dead code eliminate more when this isn't called. See golang.org/issue/3602
internal/text/template/funcs.go:39
↓ 4 callersMethodcheckCanParse
checkCanParse checks whether it is OK to parse templates. If not, it returns an error.
htmltmpl/template.go:84
↓ 4 callersFunctionclone
(obj)
public/js/index.js:1527
↓ 4 callersFunctioncompareNodeNames
(fromEl, toEl)
public/js/index.js:2502
↓ 4 callersFunctioncssEscaper
cssEscaper escapes HTML and CSS special characters using \<hex>+ escapes.
htmltmpl/css.go:158
↓ 4 callersMethoddebounce
(el, event, eventType, callback)
public/js/index.js:5543
↓ 4 callersMethoddisconnect
(callback, code, reason)
public/js/index.js:1032
↓ 4 callersFunctioneatWhiteSpace
eatWhiteSpace returns the largest j such that s[i:j] is white space.
htmltmpl/transition.go:624
↓ 4 callersMethodelementID
(el)
public/js/index.js:3454
↓ 4 callersMethoderror
(reason)
public/js/index.js:1466
↓ 4 callersMethoderror
error terminates processing.
internal/text/template/parse/parse.go:168
↓ 4 callersMethodescapeList
escapeList escapes a list template node.
htmltmpl/escape.go:575
↓ 4 callersMethodevalArg
(dot reflect.Value, typ reflect.Type, n parse.Node)
internal/text/template/exec.go:923
↓ 4 callersFunctionfindFunction
findFunction looks for a function in the template, and global map.
internal/text/template/funcs.go:141
↓ 4 callersFunctionisAlphaNumeric
isAlphaNumeric reports whether r is an alphabetic, digit, or underscore.
internal/text/template/parse/lex.go:676
↓ 4 callersMethodisCIDPatch
()
public/js/index.js:3182
← previousnext →101–200 of 1,499, ranked by callers