Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/canopyclimate/golive
/ functions
Functions
1,499 in github.com/canopyclimate/golive
⨍
Functions
1,499
◇
Types & classes
179
↓ 7 callers
Method
makeRef
()
public/js/index.js:1248
↓ 7 callers
Method
parse
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 callers
Method
trackBefore
(kind, ...args)
public/js/index.js:2942
↓ 6 callers
Method
AddParseTree
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 callers
Method
Clone
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 callers
Method
Copy
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 callers
Method
ExecuteTree
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 callers
Method
Lookup
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 callers
Method
Name
Name returns the name of the template.
internal/text/template/template.go:48
↓ 6 callers
Function
Parse
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 callers
Method
ParseGlob
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 callers
Method
Push
Push pushes an event to the server.
live/js.go:45
↓ 6 callers
Method
Show
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 callers
Method
Toggle
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 callers
Method
activeFiles
(input)
public/js/index.js:2226
↓ 6 callers
Method
after
(kind, callback)
public/js/index.js:2939
↓ 6 callers
Method
backup
backup backs the input stream up one token.
internal/text/template/parse/parse.go:81
↓ 6 callers
Method
bind
(events, callback)
public/js/index.js:5266
↓ 6 callers
Method
destroy
(callback = function() { })
public/js/index.js:3829
↓ 6 callers
Function
equal
(i1, i2 []item, checkPos bool)
internal/text/template/parse/lex_test.go:412
↓ 6 callers
Method
ignore
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 callers
Method
join
(timeout = this.timeout)
public/js/index.js:518
↓ 6 callers
Method
next
next returns the next token.
internal/text/template/parse/parse.go:71
↓ 6 callers
Function
nextJSCtx
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 callers
Method
ownsElement
(el)
public/js/index.js:4766
↓ 6 callers
Method
renderToTree
(ctx context.Context)
live/liveview.go:774
↓ 6 callers
Method
targetComponentID
(target, targetCtx, opts = {})
public/js/index.js:4444
↓ 6 callers
Method
time
(name, func)
public/js/index.js:4920
↓ 6 callers
Method
trigger
(status, response)
public/js/index.js:425
↓ 6 callers
Method
unload
()
public/js/index.js:4906
↓ 5 callers
Method
Close
()
examples/main.go:270
↓ 5 callers
Method
Hide
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 callers
Function
IsEmptyTree
IsEmptyTree reports whether this tree (node) is empty of everything but space or comments.
internal/text/template/parse/parse.go:270
↓ 5 callers
Method
JSON
JSON returns a JSON representation of the tree.
internal/tmpl/tree.go:124
↓ 5 callers
Method
MarshalJSON
()
live/internal/phx/reply.go:211
↓ 5 callers
Method
UnmarshalBinary
(data []byte)
live/internal/phx/upload.go:21
↓ 5 callers
Method
Valid
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 callers
Method
close
(code, reason, wasClean)
public/js/index.js:815
↓ 5 callers
Function
closestPhxBinding
(el, binding, borderEl)
public/js/index.js:1530
↓ 5 callers
Function
closure
(value)
public/js/index.js:309
↓ 5 callers
Function
collect
collect gathers the emitted items into a slice.
internal/text/template/parse/lex_test.go:395
↓ 5 callers
Function
createTestDir
(files []templateFile)
htmltmpl/examplefiles_test.go:22
↓ 5 callers
Method
emitItem
emitItem passes the specified item to the parser.
internal/text/template/parse/lex.go:184
↓ 5 callers
Method
eventMeta
(eventName, e, targetEl)
public/js/index.js:5242
↓ 5 callers
Method
execJS
(el, encodedJS, eventType = null)
public/js/index.js:4903
↓ 5 callers
Method
genFileRef
(file)
public/js/index.js:2163
↓ 5 callers
Function
indirect
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 callers
Function
isComment
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 callers
Function
isHex
isHex reports whether the given character is a hex digit.
htmltmpl/css.go:104
↓ 5 callers
Function
isObject
(obj)
public/js/index.js:1539
↓ 5 callers
Function
isSpace
isSpace reports whether r is a space character.
internal/text/template/parse/lex.go:671
↓ 5 callers
Method
lookup
(name string)
htmltmpl/template_test.go:192
↓ 5 callers
Method
mark
mark returns the length of the variable stack.
internal/text/template/exec.go:70
↓ 5 callers
Method
onClose
(callback)
public/js/index.js:528
↓ 5 callers
Method
onError
(callback)
public/js/index.js:531
↓ 5 callers
Method
onRedirect
({ to, flash })
public/js/index.js:4255
↓ 5 callers
Method
pipeline
Pipeline: declarations? command ('|' command)*
internal/text/template/parse/parse.go:454
↓ 5 callers
Method
putRef
(elements, event, opts = {})
public/js/index.js:4417
↓ 5 callers
Method
redirect
(to, flash)
public/js/index.js:5056
↓ 5 callers
Method
scheduleTimeout
()
public/js/index.js:440
↓ 5 callers
Method
stopParse
stopParse terminates parsing.
internal/text/template/parse/parse.go:234
↓ 5 callers
Function
stripTags
stripTags takes a snippet of HTML and returns only the text content. For example, `<b>¡Hi!</b> <script>...</script>` -> `¡Hi! `.
htmltmpl/html.go:181
↓ 5 callers
Function
testExec
(t *testing.T, funcs htmltmpl.FuncMap, tmpl, wantJSON, wantPlain string, dot dot)
internal/tmpl/tree_test.go:42
↓ 5 callers
Method
thisItem
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 callers
Method
trackAfter
(kind, ...args)
public/js/index.js:2945
↓ 5 callers
Method
withPageLoading
(info, callback)
public/js/index.js:5416
↓ 5 callers
Method
writeBytes
(p []byte)
internal/tmpl/tree.go:140
↓ 5 callers
Method
writeLeadingComma
(i int)
internal/tmpl/tree.go:200
↓ 4 callers
Method
ErrorContext
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 callers
Method
HandleParams
(context.Context, *url.URL)
live/liveview.go:194
↓ 4 callers
Method
IncRangeStep
IncRangeStep records that a single range iteration has completed it.
internal/tmpl/tree.go:61
↓ 4 callers
Function
NewIdentifier
NewIdentifier returns a new IdentifierNode with the given identifier name.
internal/text/template/parse/node.go:352
↓ 4 callers
Function
NewReplyDiff
(msg Msg, diff []byte)
live/internal/phx/reply.go:112
↓ 4 callers
Method
ParseFiles
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 callers
Function
ParseGlob
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 callers
Method
ParseGlob
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 callers
Method
SetPos
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 callers
Method
SetTree
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 callers
Method
acceptRun
acceptRun consumes a run of runes from the valid set.
internal/text/template/parse/lex.go:208
↓ 4 callers
Method
add
add adds tree to t.treeSet.
internal/text/template/parse/parse.go:258
↓ 4 callers
Function
addKeyedRemoval
(key)
public/js/index.js:2657
↓ 4 callers
Method
applyJoinPatch
(live_patch, html, streams, events)
public/js/index.js:3979
↓ 4 callers
Method
atTerminator
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 callers
Function
basicKind
(v reflect.Value)
internal/text/template/funcs.go:420
↓ 4 callers
Function
builtins
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 callers
Method
checkCanParse
checkCanParse checks whether it is OK to parse templates. If not, it returns an error.
htmltmpl/template.go:84
↓ 4 callers
Function
clone
(obj)
public/js/index.js:1527
↓ 4 callers
Function
compareNodeNames
(fromEl, toEl)
public/js/index.js:2502
↓ 4 callers
Function
cssEscaper
cssEscaper escapes HTML and CSS special characters using \<hex>+ escapes.
htmltmpl/css.go:158
↓ 4 callers
Method
debounce
(el, event, eventType, callback)
public/js/index.js:5543
↓ 4 callers
Method
disconnect
(callback, code, reason)
public/js/index.js:1032
↓ 4 callers
Function
eatWhiteSpace
eatWhiteSpace returns the largest j such that s[i:j] is white space.
htmltmpl/transition.go:624
↓ 4 callers
Method
elementID
(el)
public/js/index.js:3454
↓ 4 callers
Method
error
(reason)
public/js/index.js:1466
↓ 4 callers
Method
error
error terminates processing.
internal/text/template/parse/parse.go:168
↓ 4 callers
Method
escapeList
escapeList escapes a list template node.
htmltmpl/escape.go:575
↓ 4 callers
Method
evalArg
(dot reflect.Value, typ reflect.Type, n parse.Node)
internal/text/template/exec.go:923
↓ 4 callers
Function
findFunction
findFunction looks for a function in the template, and global map.
internal/text/template/funcs.go:141
↓ 4 callers
Function
isAlphaNumeric
isAlphaNumeric reports whether r is an alphabetic, digit, or underscore.
internal/text/template/parse/lex.go:676
↓ 4 callers
Method
isCIDPatch
()
public/js/index.js:3182
← previous
next →
101–200 of 1,499, ranked by callers