MCPcopy Create free account

hub / github.com/canopyclimate/golive / functions

Functions1,499 in github.com/canopyclimate/golive

↓ 4 callersFunctionisMissing
(v reflect.Value)
internal/text/template/exec.go:115
↓ 4 callersFunctionisNil
isNil returns true if v is the zero reflect.Value, or nil of its type.
internal/text/template/funcs.go:439
↓ 4 callersMethoditemList
itemList: textOrAction* Terminates at {{end}} or {{else}}, returned separately.
internal/text/template/parse/parse.go:350
↓ 4 callersFunctionjoin
join joins the two contexts of a branch template node. The result is an error context if either of the input contexts are error contexts, or if the in
htmltmpl/escape.go:461
↓ 4 callersMethodleave
(timeout = this.timeout)
public/js/index.js:563
↓ 4 callersFunctionloadTemplate
loadTemplate loads a template from the given path, adding the provided FuncMaps.
examples/main.go:136
↓ 4 callersFunctionmakeEscaper
makeEscaper creates a blank escaper for the given set.
htmltmpl/escape.go:115
↓ 4 callersFunctionmorphEl
(fromEl, toEl, childrenOnly2)
public/js/index.js:2732
↓ 4 callersMethodnewList
(pos Pos)
internal/text/template/parse/node.go:89
↓ 4 callersMethodnewVariable
(pos Pos, ident string)
internal/text/template/parse/node.go:425
↓ 4 callersFunctionnormalizeEscFn
normalizeEscFn(a) is equal to normalizeEscFn(b) for any pair of names of escaper functions a and b that are equivalent.
htmltmpl/escape.go:376
↓ 4 callersMethodonChannel
(event, cb)
public/js/index.js:4218
↓ 4 callersFunctiononDone
()
public/js/index.js:3693
↓ 4 callersMethodowner
(childEl, callback)
public/js/index.js:5098
↓ 4 callersFunctionparseFiles
parseFiles is the helper for the method and function. If the argument template is nil, it is created from the first file.
htmltmpl/template.go:401
↓ 4 callersFunctionparseFiles
parseFiles is the helper for the method and function. If the argument template is nil, it is created from the first file.
internal/text/template/helper.go:62
↓ 4 callersMethodpeek
peek returns but does not consume the next rune in the input.
internal/text/template/parse/lex.go:151
↓ 4 callersMethodreloadWithJitter
(view, log)
public/js/index.js:4985
↓ 4 callersFunctionremoveNode
(node, parentNode, skipKeyedNodes)
public/js/index.js:2677
↓ 4 callersFunctionrunCases
(t *testing.T, cases []jsTestCase)
live/js_test.go:13
↓ 4 callersFunctionserializeForm
(form, metadata, onlyNames = [])
public/js/index.js:3734
↓ 4 callersMethodsetVar
setVar overwrites the last declared variable with the given name. Used by variable assignments.
internal/text/template/exec.go:81
↓ 4 callersMethodshowLoader
(timeout)
public/js/index.js:3852
↓ 4 callersMethodstartParse
startParse initializes the parser, using the lexer.
internal/text/template/parse/parse.go:220
↓ 4 callersFunctiontoBarPerc
(n)
public/js/index.js:208
↓ 4 callersFunctionurlNormalizer
urlNormalizer normalizes URL content so it can be embedded in a quote-delimited string or parenthesis delimited url(...). The normalizer does not enco
htmltmpl/url.go:67
↓ 4 callersMethodwriteJSONString
(s string)
internal/tmpl/tree.go:186
↓ 3 callersMethodAppendRangeSub
AppendRangeSub adds a range subnode to tree. Templates call it on entering a range statement.
internal/tmpl/tree.go:53
↓ 3 callersFunctionAppendString
The following code is extracted from https://github.com/go-json-experiment/json at commit 3fecd76f5acdb9037c6c96eb6b869c69293f9c21 (Nov 7, 2022). appe
internal/json/string.go:26
↓ 3 callersMethodDelims
Delims sets the action delimiters to the specified strings, to be used in subsequent calls to Parse, ParseFiles, or ParseGlob. Nested template definit
htmltmpl/template.go:349
↓ 3 callersFunctionJSEscapeString
JSEscapeString returns the escaped JavaScript equivalent of the plain text data s.
internal/text/template/funcs.go:722
↓ 3 callersMethodMarshalBinary
()
live/internal/phx/upload.go:61
↓ 3 callersFunctionNewDiff
(joinRef *string, topic string, diff []byte)
live/internal/phx/reply.go:62
↓ 3 callersMethodNewValue
(value reflect.Value)
internal/text/template/parse/node.go:396
↓ 3 callersMethodOption
Option sets options for the template. Options are described by strings, either a simple string or "key=value". There can be at most one equals sign in
htmltmpl/template.go:77
↓ 3 callersMethodOption
Option sets options for the template. Options are described by strings, either a simple string or "key=value". There can be at most one equals sign in
internal/text/template/option.go:42
↓ 3 callersMethodParseFS
ParseFS is like ParseFiles or ParseGlob but reads from the file system fs instead of the host operating system's file system. It accepts a list of glo
htmltmpl/template.go:500
↓ 3 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
live/liveview.go:230
↓ 3 callersMethodTemplates
Templates returns a slice of defined templates associated with t.
internal/text/template/template.go:146
↓ 3 callersMethodappendDynamic
(d any)
internal/tmpl/tree.go:68
↓ 3 callersMethodappendParams
(url2, params)
public/js/index.js:705
↓ 3 callersMethodapplyDiff
(type, rawDiff, callback)
public/js/index.js:3902
↓ 3 callersMethodatRightDelim
atRightDelim reports whether the lexer is at a right delimiter, possibly preceded by a trim marker.
internal/text/template/parse/lex.go:306
↓ 3 callersFunctioncanBeNil
canBeNil reports whether an untyped nil can be assigned to the type. See reflect.Zero.
internal/text/template/exec.go:870
↓ 3 callersMethodcanPush
()
public/js/index.js:544
↓ 3 callersMethodcancelTimeout
()
public/js/index.js:402
↓ 3 callersFunctionclamp
(n, min, max)
public/js/index.js:201
↓ 3 callersFunctionclassList
(element)
public/js/index.js:294
↓ 3 callersMethodclearHeartbeats
()
public/js/index.js:1097
↓ 3 callersMethodcloseAndRetry
(code, reason, wasClean)
public/js/index.js:741
↓ 3 callersFunctionclosure2
(val)
public/js/index.js:1524
↓ 3 callersMethodcommitPendingLink
(linkRef)
public/js/index.js:5251
↓ 3 callersFunctioncreateTestDir
(files []templateFile)
internal/text/template/examplefiles_test.go:21
↓ 3 callersFunctioncssValueFilter
cssValueFilter allows innocuous CSS values in the output including CSS quantities (10px or 25%), ID or class literals (#foo, .bar), keyword values (in
htmltmpl/css.go:221
↓ 3 callersMethoddone
()
public/js/index.js:5418
↓ 3 callersMethodentries
()
public/js/index.js:2242
↓ 3 callersMethodescapeBranch
escapeBranch escapes a branch template node: "if", "range" and "with".
htmltmpl/escape.go:512
↓ 3 callersFunctionevalArgs
evalArgs formats the list of arguments into a string. It is therefore equivalent to fmt.Sprint(args...) except that each argument is indirected (if
internal/text/template/funcs.go:759
↓ 3 callersMethodevalFieldChain
evalFieldChain evaluates .X.Y.Z possibly followed by arguments. dot is the environment in which to evaluate arguments, while receiver is the value bei
internal/text/template/exec.go:663
↓ 3 callersMethodevalFieldNode
(dot reflect.Value, field *parse.FieldNode, args []parse.Node, final reflect.Value)
internal/text/template/exec.go:631
↓ 3 callersMethodevalFunction
(dot reflect.Value, node *parse.IdentifierNode, cmd parse.Node, args []parse.Node, final reflect.Value)
internal/text/template/exec.go:672
↓ 3 callersMethodevalVariableNode
(dot reflect.Value, variable *parse.VariableNode, args []parse.Node, final reflect.Value)
internal/text/template/exec.go:649
↓ 3 callersMethodexecGoLivePostprocessFunc
execGoLivePostprocessFunc executes the funcmap function name, if any, and returns its result. If name is present in the funcmap but is not of the corr
internal/text/template/golive.go:59
↓ 3 callersMethodexpect
expect consumes the next token and guarantees it has the required type.
internal/text/template/parse/parse.go:173
↓ 3 callersMethodfilesAwaitingPreflight
(input)
public/js/index.js:2233
↓ 3 callersFunctionfloatCompare
floatCompare compares two floating-point values. NaNs compare low.
internal/fmtsort/sort.go:203
↓ 3 callersMethodgetActiveElement
()
public/js/index.js:5145
↓ 3 callersMethodgetHook
(el)
public/js/index.js:4179
↓ 3 callersMethodgetLatencySim
()
public/js/index.js:4866
↓ 3 callersMethodgetRootById
(id)
public/js/index.js:5111
↓ 3 callersFunctiongoodFunc
goodFunc reports whether the function or method has the right result signature.
internal/text/template/funcs.go:112
↓ 3 callersMethodhasFunction
hasFunction reports if a function name exists in the Tree's maps.
internal/text/template/parse/parse.go:799
↓ 3 callersMethodhasPendingLink
()
public/js/index.js:5263
↓ 3 callersFunctionhexDecode
hexDecode decodes a short hex digit sequence: "10" -> 16.
htmltmpl/css.go:109
↓ 3 callersMethodhistoryPatch
(href, linkState, linkRef = this.setPendingLink(href))
public/js/index.js:5432
↓ 3 callersMethodhistoryRedirect
(href, linkState, flash)
public/js/index.js:5439
↓ 3 callersFunctionhtmlNospaceEscaper
htmlNospaceEscaper escapes for inclusion in unquoted attribute values.
htmltmpl/html.go:15
↓ 3 callersMethodisActive
()
public/js/index.js:749
↓ 3 callersFunctionisCSSNmchar
isCSSNmchar reports whether rune is allowed anywhere in a CSS identifier.
htmltmpl/css.go:39
↓ 3 callersMethodisDebugEnabled
()
public/js/index.js:4840
↓ 3 callersFunctionisJSIdentPart
isJSIdentPart reports whether the given rune is a JS identifier part. It does not handle all the non-Latin letters, joiners, and combining marks, but
htmltmpl/js.go:384
↓ 3 callersMethodisJoinPending
()
public/js/index.js:4113
↓ 3 callersMethodisJoined
()
public/js/index.js:626
↓ 3 callersMethodisMain
()
public/js/index.js:3806
↓ 3 callersFunctionisNaN
(a float64)
internal/fmtsort/sort.go:217
↓ 3 callersFunctionisTrue
(val reflect.Value)
internal/text/template/exec.go:377
↓ 3 callersMethodisUnloaded
()
public/js/index.js:5014
↓ 3 callersFunctionjsRegexpEscaper
jsRegexpEscaper behaves like jsStrEscaper but escapes regular expression specials so the result is treated literally when included in a regular expres
htmltmpl/js.go:245
↓ 3 callersFunctionjsStrEscaper
jsStrEscaper produces a string that can be included between quotes in JavaScript source, in JavaScript embedded in an HTML5 <script> element, or in an
htmltmpl/js.go:233
↓ 3 callersMethodnewElse
(pos Pos, line int)
internal/text/template/parse/node.go:845
↓ 3 callersMethodnewIf
(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode)
internal/text/template/parse/node.go:933
↓ 3 callersMethodnewRange
(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode)
internal/text/template/parse/node.go:980
↓ 3 callersMethodnewRootView
(el, flash, liveReferer)
public/js/index.js:5093
↓ 3 callersMethodnewTemplate
(pos Pos, line int, name string, pipe *PipeNode)
internal/text/template/parse/node.go:1011
↓ 3 callersMethodnewWith
(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode)
internal/text/template/parse/node.go:993
↓ 3 callersMethodnextItem
nextItem returns the next item from the input. Called by the parser, not in the lexing goroutine.
internal/text/template/parse/lex.go:226
↓ 3 callersMethodnotAFunction
(args []parse.Node, final reflect.Value)
internal/text/template/exec.go:551
↓ 3 callersFunctionnudge
nudge returns the context that would result from following empty string transitions from the input context. For example, parsing: `<a href=` will e
htmltmpl/escape.go:443
↓ 3 callersMethodoff
(event, ref)
public/js/index.js:539
↓ 3 callersMethodonLiveRedirect
(redir)
public/js/index.js:4242
← previousnext →201–300 of 1,499, ranked by callers