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
↓ 4 callers
Function
isMissing
(v reflect.Value)
internal/text/template/exec.go:115
↓ 4 callers
Function
isNil
isNil returns true if v is the zero reflect.Value, or nil of its type.
internal/text/template/funcs.go:439
↓ 4 callers
Method
itemList
itemList: textOrAction* Terminates at {{end}} or {{else}}, returned separately.
internal/text/template/parse/parse.go:350
↓ 4 callers
Function
join
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 callers
Method
leave
(timeout = this.timeout)
public/js/index.js:563
↓ 4 callers
Function
loadTemplate
loadTemplate loads a template from the given path, adding the provided FuncMaps.
examples/main.go:136
↓ 4 callers
Function
makeEscaper
makeEscaper creates a blank escaper for the given set.
htmltmpl/escape.go:115
↓ 4 callers
Function
morphEl
(fromEl, toEl, childrenOnly2)
public/js/index.js:2732
↓ 4 callers
Method
newList
(pos Pos)
internal/text/template/parse/node.go:89
↓ 4 callers
Method
newVariable
(pos Pos, ident string)
internal/text/template/parse/node.go:425
↓ 4 callers
Function
normalizeEscFn
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 callers
Method
onChannel
(event, cb)
public/js/index.js:4218
↓ 4 callers
Function
onDone
()
public/js/index.js:3693
↓ 4 callers
Method
owner
(childEl, callback)
public/js/index.js:5098
↓ 4 callers
Function
parseFiles
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 callers
Function
parseFiles
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 callers
Method
peek
peek returns but does not consume the next rune in the input.
internal/text/template/parse/lex.go:151
↓ 4 callers
Method
reloadWithJitter
(view, log)
public/js/index.js:4985
↓ 4 callers
Function
removeNode
(node, parentNode, skipKeyedNodes)
public/js/index.js:2677
↓ 4 callers
Function
runCases
(t *testing.T, cases []jsTestCase)
live/js_test.go:13
↓ 4 callers
Function
serializeForm
(form, metadata, onlyNames = [])
public/js/index.js:3734
↓ 4 callers
Method
setVar
setVar overwrites the last declared variable with the given name. Used by variable assignments.
internal/text/template/exec.go:81
↓ 4 callers
Method
showLoader
(timeout)
public/js/index.js:3852
↓ 4 callers
Method
startParse
startParse initializes the parser, using the lexer.
internal/text/template/parse/parse.go:220
↓ 4 callers
Function
toBarPerc
(n)
public/js/index.js:208
↓ 4 callers
Function
urlNormalizer
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 callers
Method
writeJSONString
(s string)
internal/tmpl/tree.go:186
↓ 3 callers
Method
AppendRangeSub
AppendRangeSub adds a range subnode to tree. Templates call it on entering a range statement.
internal/tmpl/tree.go:53
↓ 3 callers
Function
AppendString
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 callers
Method
Delims
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 callers
Function
JSEscapeString
JSEscapeString returns the escaped JavaScript equivalent of the plain text data s.
internal/text/template/funcs.go:722
↓ 3 callers
Method
MarshalBinary
()
live/internal/phx/upload.go:61
↓ 3 callers
Function
NewDiff
(joinRef *string, topic string, diff []byte)
live/internal/phx/reply.go:62
↓ 3 callers
Method
NewValue
(value reflect.Value)
internal/text/template/parse/node.go:396
↓ 3 callers
Method
Option
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 callers
Method
Option
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 callers
Method
ParseFS
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 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
live/liveview.go:230
↓ 3 callers
Method
Templates
Templates returns a slice of defined templates associated with t.
internal/text/template/template.go:146
↓ 3 callers
Method
appendDynamic
(d any)
internal/tmpl/tree.go:68
↓ 3 callers
Method
appendParams
(url2, params)
public/js/index.js:705
↓ 3 callers
Method
applyDiff
(type, rawDiff, callback)
public/js/index.js:3902
↓ 3 callers
Method
atRightDelim
atRightDelim reports whether the lexer is at a right delimiter, possibly preceded by a trim marker.
internal/text/template/parse/lex.go:306
↓ 3 callers
Function
canBeNil
canBeNil reports whether an untyped nil can be assigned to the type. See reflect.Zero.
internal/text/template/exec.go:870
↓ 3 callers
Method
canPush
()
public/js/index.js:544
↓ 3 callers
Method
cancelTimeout
()
public/js/index.js:402
↓ 3 callers
Function
clamp
(n, min, max)
public/js/index.js:201
↓ 3 callers
Function
classList
(element)
public/js/index.js:294
↓ 3 callers
Method
clearHeartbeats
()
public/js/index.js:1097
↓ 3 callers
Method
closeAndRetry
(code, reason, wasClean)
public/js/index.js:741
↓ 3 callers
Function
closure2
(val)
public/js/index.js:1524
↓ 3 callers
Method
commitPendingLink
(linkRef)
public/js/index.js:5251
↓ 3 callers
Function
createTestDir
(files []templateFile)
internal/text/template/examplefiles_test.go:21
↓ 3 callers
Function
cssValueFilter
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 callers
Method
done
()
public/js/index.js:5418
↓ 3 callers
Method
entries
()
public/js/index.js:2242
↓ 3 callers
Method
escapeBranch
escapeBranch escapes a branch template node: "if", "range" and "with".
htmltmpl/escape.go:512
↓ 3 callers
Function
evalArgs
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 callers
Method
evalFieldChain
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 callers
Method
evalFieldNode
(dot reflect.Value, field *parse.FieldNode, args []parse.Node, final reflect.Value)
internal/text/template/exec.go:631
↓ 3 callers
Method
evalFunction
(dot reflect.Value, node *parse.IdentifierNode, cmd parse.Node, args []parse.Node, final reflect.Value)
internal/text/template/exec.go:672
↓ 3 callers
Method
evalVariableNode
(dot reflect.Value, variable *parse.VariableNode, args []parse.Node, final reflect.Value)
internal/text/template/exec.go:649
↓ 3 callers
Method
execGoLivePostprocessFunc
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 callers
Method
expect
expect consumes the next token and guarantees it has the required type.
internal/text/template/parse/parse.go:173
↓ 3 callers
Method
filesAwaitingPreflight
(input)
public/js/index.js:2233
↓ 3 callers
Function
floatCompare
floatCompare compares two floating-point values. NaNs compare low.
internal/fmtsort/sort.go:203
↓ 3 callers
Method
getActiveElement
()
public/js/index.js:5145
↓ 3 callers
Method
getHook
(el)
public/js/index.js:4179
↓ 3 callers
Method
getLatencySim
()
public/js/index.js:4866
↓ 3 callers
Method
getRootById
(id)
public/js/index.js:5111
↓ 3 callers
Function
goodFunc
goodFunc reports whether the function or method has the right result signature.
internal/text/template/funcs.go:112
↓ 3 callers
Method
hasFunction
hasFunction reports if a function name exists in the Tree's maps.
internal/text/template/parse/parse.go:799
↓ 3 callers
Method
hasPendingLink
()
public/js/index.js:5263
↓ 3 callers
Function
hexDecode
hexDecode decodes a short hex digit sequence: "10" -> 16.
htmltmpl/css.go:109
↓ 3 callers
Method
historyPatch
(href, linkState, linkRef = this.setPendingLink(href))
public/js/index.js:5432
↓ 3 callers
Method
historyRedirect
(href, linkState, flash)
public/js/index.js:5439
↓ 3 callers
Function
htmlNospaceEscaper
htmlNospaceEscaper escapes for inclusion in unquoted attribute values.
htmltmpl/html.go:15
↓ 3 callers
Method
isActive
()
public/js/index.js:749
↓ 3 callers
Function
isCSSNmchar
isCSSNmchar reports whether rune is allowed anywhere in a CSS identifier.
htmltmpl/css.go:39
↓ 3 callers
Method
isDebugEnabled
()
public/js/index.js:4840
↓ 3 callers
Function
isJSIdentPart
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 callers
Method
isJoinPending
()
public/js/index.js:4113
↓ 3 callers
Method
isJoined
()
public/js/index.js:626
↓ 3 callers
Method
isMain
()
public/js/index.js:3806
↓ 3 callers
Function
isNaN
(a float64)
internal/fmtsort/sort.go:217
↓ 3 callers
Function
isTrue
(val reflect.Value)
internal/text/template/exec.go:377
↓ 3 callers
Method
isUnloaded
()
public/js/index.js:5014
↓ 3 callers
Function
jsRegexpEscaper
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 callers
Function
jsStrEscaper
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 callers
Method
newElse
(pos Pos, line int)
internal/text/template/parse/node.go:845
↓ 3 callers
Method
newIf
(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode)
internal/text/template/parse/node.go:933
↓ 3 callers
Method
newRange
(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode)
internal/text/template/parse/node.go:980
↓ 3 callers
Method
newRootView
(el, flash, liveReferer)
public/js/index.js:5093
↓ 3 callers
Method
newTemplate
(pos Pos, line int, name string, pipe *PipeNode)
internal/text/template/parse/node.go:1011
↓ 3 callers
Method
newWith
(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode)
internal/text/template/parse/node.go:993
↓ 3 callers
Method
nextItem
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 callers
Method
notAFunction
(args []parse.Node, final reflect.Value)
internal/text/template/exec.go:551
↓ 3 callers
Function
nudge
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 callers
Method
off
(event, ref)
public/js/index.js:539
↓ 3 callers
Method
onLiveRedirect
(redir)
public/js/index.js:4242
← previous
next →
201–300 of 1,499, ranked by callers