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
↓ 3 callers
Method
parseControl
(allowElseIf bool, context string)
internal/text/template/parse/parse.go:524
↓ 3 callers
Method
performPatch
(patch, pruneCids)
public/js/index.js:4022
↓ 3 callers
Method
pop
pop pops the variable stack up to the mark.
internal/text/template/exec.go:75
↓ 3 callers
Function
processURLOnto
processURLOnto appends a normalized URL corresponding to its input to b and reports whether the appended content differs from s.
htmltmpl/url.go:87
↓ 3 callers
Method
pushFileProgress
(fileEl, entryRef, progress, onReply = function() { })
public/js/index.js:4518
↓ 3 callers
Method
registerNewLocation
(newLocation)
public/js/index.js:5459
↓ 3 callers
Method
rejoin
(timeout = this.timeout)
public/js/index.js:598
↓ 3 callers
Function
replace
replace replaces each rune r of s with replacementTable[r], provided that r < len(replacementTable). If replacementTable[r] is the empty string then n
htmltmpl/js.go:260
↓ 3 callers
Method
replaceMain
(href, flash, callback = null, linkRef = this.setPendingLink(href))
public/js/index.js:5060
↓ 3 callers
Method
setContainerClasses
(...classes)
public/js/index.js:3848
↓ 3 callers
Method
setPendingLink
(href)
public/js/index.js:5246
↓ 3 callers
Function
srcsetFilterAndEscaper
Filters and normalizes srcset values which are comma separated URLs followed by metadata.
htmltmpl/url.go:143
↓ 3 callers
Function
syncBooleanAttrProp
(fromEl, toEl, name)
public/js/index.js:2531
↓ 3 callers
Method
teardown
(callback, code, reason)
public/js/index.js:1130
↓ 3 callers
Method
template
template returns the named template given a mangled template name.
htmltmpl/escape.go:951
↓ 3 callers
Method
trackFiles
(inputEl, files, dataTransfer)
public/js/index.js:2210
↓ 3 callers
Method
transition
(time, onStart, onDone = function() { })
public/js/index.js:3879
↓ 3 callers
Method
triggerChanError
()
public/js/index.js:1199
↓ 3 callers
Method
undoRefs
(ref)
public/js/index.js:4384
↓ 3 callers
Method
update
(diff, events)
public/js/index.js:4136
↓ 3 callers
Method
viewForRequest
(w http.ResponseWriter, r *http.Request, currentView View)
live/liveview.go:57
↓ 3 callers
Method
withinTargets
(phxTarget, callback)
public/js/index.js:3883
↓ 2 callers
Method
Decode
Decode decodes the url.Values into the struct returning an error if there was a problem.
changeset/changeset.go:20
↓ 2 callers
Method
DefinedTemplates
DefinedTemplates returns a string listing the defined templates, prefixed by the string "; defined templates are: ". If there are none, it returns the
htmltmpl/template.go:172
↓ 2 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
internal/text/template/template.go:165
↓ 2 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
htmltmpl/golive.go:10
↓ 2 callers
Function
HTMLEscape
HTMLEscape writes to w the escaped HTML equivalent of the plain text data b.
internal/text/template/funcs.go:611
↓ 2 callers
Function
HTMLEscapeString
HTMLEscapeString returns the escaped HTML equivalent of the plain text data s.
internal/text/template/funcs.go:639
↓ 2 callers
Method
HandleEvent
(context.Context, *Event)
live/liveview.go:200
↓ 2 callers
Function
JSEscape
JSEscape writes to w the escaped JavaScript equivalent of the plain text data b.
internal/text/template/funcs.go:671
↓ 2 callers
Method
MarshalJSON
()
live/js.go:65
↓ 2 callers
Method
MarshalJSON
MarshalJSON implements json.Marshaler for Event
live/liveview.go:809
↓ 2 callers
Method
Mount
(context.Context, Params)
live/liveview.go:188
↓ 2 callers
Function
NewEmptyReply
(msg Msg)
live/internal/phx/reply.go:71
↓ 2 callers
Function
NewGoPlaygroundChangesetConfig
NewGoPlaygroundChangesetConfig initializes the decoder and configures the validator with translations for the len, lte, and min tags. This is a minima
changeset/goplayground.go:29
↓ 2 callers
Function
NewHeartbeat
(msgRef string)
live/internal/phx/reply.go:142
↓ 2 callers
Function
NewRendered
(msg Msg, rendered []byte)
live/internal/phx/reply.go:127
↓ 2 callers
Function
NewUploadReplyDiff
(msg Msg, diff []byte, config []byte, entries []byte)
live/internal/phx/reply.go:95
↓ 2 callers
Function
Parse
(msg []byte)
live/internal/phx/phx.go:16
↓ 2 callers
Method
Parse
Parse parses text as a template body for t. Named template definitions ({{define ...}} or {{block ...}} statements) in text define additional template
internal/text/template/template.go:208
↓ 2 callers
Method
ParseFS
ParseFS is like ParseFiles or ParseGlob but reads from the file system fsys instead of the host operating system's file system. It accepts a list of g
internal/text/template/helper.go:146
↓ 2 callers
Function
ParseFiles
ParseFiles creates a new Template and parses the template definitions from the named files. The returned template's name will have the base name and p
internal/text/template/helper.go:40
↓ 2 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
internal/text/template/helper.go:55
↓ 2 callers
Method
Render
Render returns the dot and template needed to turn a LiveView into HTML. Commonly the returned dot is the receiver; however, any data needed to render
live/liveview.go:182
↓ 2 callers
Method
RenderTo
RenderTo renders the content represented by t to w.
internal/tmpl/tree.go:294
↓ 2 callers
Function
SendInfo
SendInfo sends an internal event to the View if it is connected to a WebSocket
live/liveview.go:840
↓ 2 callers
Function
Sort
Sort accepts a map and returns a SortedMap that has the same keys and values but in a stable sorted order according to the keys, modulo issues raised
internal/fmtsort/sort.go:51
↓ 2 callers
Method
Valid
Valid performs an internal consistency check and returns an error if it fails.
internal/tmpl/tree.go:111
↓ 2 callers
Method
Write
(b []byte)
live/route.go:23
↓ 2 callers
Method
__updated
()
public/js/index.js:3472
↓ 2 callers
Function
addClass
(element, name)
public/js/index.js:281
↓ 2 callers
Function
addValueFuncs
addValueFuncs adds to values the functions in funcs, converting them to reflect.Values.
internal/text/template/funcs.go:87
↓ 2 callers
Method
afterElementsRemoved
(elements, pruneCids)
public/js/index.js:4061
↓ 2 callers
Method
ajax
(method, contentType, body, onCallerTimeout, callback)
public/js/index.js:830
↓ 2 callers
Function
appendCmd
appendCmd appends the given command to the end of the command pipeline unless it is redundant with the last command.
htmltmpl/escape.go:406
↓ 2 callers
Function
applyCss
(element, prop, value)
public/js/index.js:260
↓ 2 callers
Method
applyPendingUpdates
()
public/js/index.js:4207
↓ 2 callers
Method
arbitraryTemplate
arbitraryTemplate returns an arbitrary template from the name space associated with e and panics if no templates are found.
htmltmpl/escape.go:963
↓ 2 callers
Function
asciiAlpha
asciiAlpha reports whether c is an ASCII letter.
htmltmpl/transition.go:592
↓ 2 callers
Function
asciiAlphaNum
asciiAlphaNum reports whether c is an ASCII letter or digit.
htmltmpl/transition.go:597
↓ 2 callers
Function
attrType
attrType returns a conservative (upper-bound on authority) guess at the type of the lowercase named attribute.
htmltmpl/attr.go:140
↓ 2 callers
Method
backup2
backup2 backs the input stream up two tokens. The zeroth token is already there.
internal/text/template/parse/parse.go:87
↓ 2 callers
Method
bindClick
(eventName, bindingName, capture)
public/js/index.js:5297
↓ 2 callers
Method
bindTopLevelEvents
({ dead } = {})
public/js/index.js:5168
↓ 2 callers
Function
buildHiddenInput
(name, value)
public/js/index.js:1319
↓ 2 callers
Method
cancelRefEvent
()
public/js/index.js:396
↓ 2 callers
Method
cancelSubmit
(formEl)
public/js/index.js:4583
↓ 2 callers
Method
channel
(topic, chanParams = {})
public/js/index.js:1232
↓ 2 callers
Method
cloneMerge
(target, source)
public/js/index.js:3323
↓ 2 callers
Method
closestComponentID
(targetCtx)
public/js/index.js:4457
↓ 2 callers
Function
compare
compare compares two values of the same type. It returns -1, 0, 1 according to whether a > b (1), a == b (0), or a < b (-1). If the types differ, it r
internal/fmtsort/sort.go:78
↓ 2 callers
Method
componentCIDs
(diff)
public/js/index.js:3252
↓ 2 callers
Method
componentID
(el)
public/js/index.js:4440
↓ 2 callers
Method
copy
copy returns a shallow copy of t, with common set to the argument.
internal/text/template/template.go:116
↓ 2 callers
Method
createSpan
(text, cid)
public/js/index.js:3442
↓ 2 callers
Method
destroyAllChildren
()
public/js/index.js:4239
↓ 2 callers
Method
destroyHook
(hook)
public/js/index.js:4202
↓ 2 callers
Method
destroyViewByEl
(el)
public/js/index.js:5121
↓ 2 callers
Method
disableForm
(formEl, opts = {})
public/js/index.js:4593
↓ 2 callers
Method
dispatchEvents
(events)
public/js/index.js:5413
↓ 2 callers
Method
dispatchUploads
(name, filesOrBlobs)
public/js/index.js:4689
↓ 2 callers
Function
doublePercent
doublePercent returns the string with %'s replaced by %%, if necessary, so it can be used safely inside a Printf format string.
internal/text/template/exec.go:126
↓ 2 callers
Method
dynamicToBuffer
(rendered, templates, output)
public/js/index.js:3384
↓ 2 callers
Method
eachChild
(callback)
public/js/index.js:4212
↓ 2 callers
Function
eatAttrName
eatAttrName returns the largest j such that s[i:j] is an attribute name. It returns an error if s[i:] does not look like it begins with an attribute n
htmltmpl/transition.go:567
↓ 2 callers
Method
editActionNode
editActionNode records a change to an action pipeline for later commit.
htmltmpl/escape.go:896
↓ 2 callers
Method
editTemplateNode
editTemplateNode records a change to a {{template}} callee for later commit.
htmltmpl/escape.go:904
↓ 2 callers
Method
editTextNode
editTextNode records a change to a text node for later commit.
htmltmpl/escape.go:912
↓ 2 callers
Method
enableDebug
()
public/js/index.js:4846
↓ 2 callers
Method
endPointURL
()
public/js/index.js:1022
↓ 2 callers
Function
endsWithCSSKeyword
endsWithCSSKeyword reports whether b ends with an ident that case-insensitively matches the lower-case kw.
htmltmpl/css.go:17
↓ 2 callers
Function
ensurePipelineContains
ensurePipelineContains ensures that the pipeline ends with the commands with the identifiers in s in order. If the pipeline ends with a predefined esc
htmltmpl/escape.go:278
↓ 2 callers
Function
eq
eq evaluates the comparison a == b || a == c || ...
internal/text/template/funcs.go:463
↓ 2 callers
Function
errRecover
errRecover is the handler that turns panics into returns from the top level of Parse.
internal/text/template/exec.go:181
↓ 2 callers
Method
escape
escape escapes all associated templates.
htmltmpl/template.go:97
↓ 2 callers
Method
escapeListConditionally
escapeListConditionally escapes a list node but only preserves edits and inferences in e if the inferences and output context satisfy filter. It retur
htmltmpl/escape.go:592
↓ 2 callers
Function
escapeTemplate
escapeTemplate rewrites the named template, which must be associated with t, to guarantee that the output of any of the named templates is properly es
htmltmpl/escape.go:24
↓ 2 callers
Method
escapeTemplateBody
escapeTemplateBody escapes the given template assuming the given output context, and returns the best guess at the output context and whether the assu
htmltmpl/escape.go:698
↓ 2 callers
Method
escapeText
escapeText escapes a text template node.
htmltmpl/escape.go:757
↓ 2 callers
Method
escapeTree
escapeTree escapes the named template starting in the given context as necessary and returns its output context.
htmltmpl/escape.go:636
← previous
next →
301–400 of 1,499, ranked by callers