MCPcopy Create free account

hub / github.com/canopyclimate/golive / functions

Functions1,499 in github.com/canopyclimate/golive

↓ 2 callersFunctionsprint
(data any)
internal/fmtsort/sort_test.go:139
↓ 2 callersMethodstartTimeout
()
public/js/index.js:406
↓ 2 callersFunctionstringsContains
(list []string, s string)
internal/text/template/exec.go:1194
↓ 2 callersFunctiontURL
tURL is the context transition function for the URL state.
htmltmpl/transition.go:260
↓ 2 callersMethodtemplateStatic
(part, templates)
public/js/index.js:3347
↓ 2 callersFunctiontestParse
(doCopy bool, t *testing.T)
internal/text/template/parse/parse_test.go:330
↓ 2 callersMethodtextOrAction
textOrAction: text | comment | action
internal/text/template/parse/parse.go:367
↓ 2 callersMethodtoOutputBuffer
(rendered, templates, output)
public/js/index.js:3354
↓ 2 callersMethodtransitionRemoves
(elements)
public/js/index.js:5081
↓ 2 callersMethodtriggerBeforeUpdateHook
(fromEl, toEl)
public/js/index.js:3999
↓ 2 callersMethodtriggerDOM
(kind, args)
public/js/index.js:4917
↓ 2 callersFunctiontruth
Boolean logic.
internal/text/template/funcs.go:376
↓ 2 callersMethoduploadFiles
(formEl, targetCtx, ref, cid, onComplete)
public/js/index.js:4651
↓ 2 callersFunctionurlEscaper
urlEscaper produces an output that can be embedded in a URL query. The output can be embedded in an HTML attribute without further escaping.
htmltmpl/url.go:58
↓ 2 callersFunctionurlProcessor
urlProcessor normalizes (when norm is true) or escapes its input to produce a valid hierarchical or opaque URL part.
htmltmpl/url.go:73
↓ 2 callersMethodwalkIfOrWith
walkIfOrWith walks an 'if' or 'with' node. The two control structures are identical in behavior except that 'with' sets dot.
internal/text/template/exec.go:352
↓ 2 callersFunctionwithSocket
withSocket returns a context built by associating s with ctx.
live/liveview.go:922
↓ 2 callersMethodwrapPush
(view, opts, push)
public/js/index.js:4955
↓ 2 callersMethodwriteByte
(b byte)
internal/tmpl/tree.go:149
↓ 2 callersMethodwriteDynamic
(d any)
internal/tmpl/tree.go:207
↓ 2 callersMethodwriteError
(err error)
internal/text/template/exec.go:173
↓ 1 callersMethodAddEntries
AddEnties adds all the entries to the upload config and validates each entry and the config as a whole
live/uploads.go:117
↓ 1 callersFunctionAllowUpload
Allows file uploads for the given `LiveView`and configures the upload options (filetypes, size, etc).
live/uploads.go:199
↓ 1 callersFunctionCancelUpload
Cancels the file upload for a given UploadConfig by config name and file ref.
live/uploads.go:214
↓ 1 callersFunctionCompare
(a, b reflect.Value)
internal/fmtsort/export_test.go:9
↓ 1 callersFunctionConsumeUploadedEntries
Consume the uploaded files for a given UploadConfig (by name). This should only be called after the form's "save" event has occurred which guarantees
live/uploads.go:230
↓ 1 callersMethodDecode
Decode decodes the URL values into the struct pointer.
changeset/goplayground.go:114
↓ 1 callersMethodError
Error returns the error for the given key.
changeset/changeset.go:166
↓ 1 callersMethodExecuteViewTemplate
(buf *strings.Builder)
live/liveview.go:951
↓ 1 callersFunctionFuncs
Funcs provides some useful function for live.View templates: - liveTitleTag: renders a title tag that can be updated from Views - liveNav: renders "li
live/funcs.go:18
↓ 1 callersFunctionFuncs
Funcs returns a map of functions that can be used in templates: - inputTag: renders an input tag with the given key and value for the provided changes
changeset/funcs.go:12
↓ 1 callersFunctionHTMLEscaper
HTMLEscaper returns the escaped HTML equivalent of the textual representation of its arguments.
internal/text/template/funcs.go:651
↓ 1 callersMethodHandleInfo
(context.Context, *Info)
live/liveview.go:206
↓ 1 callersMethodIncNonDefault
IncNonDefault increments the non-default behavior counter associated with the given setting. This counter is exposed in the runtime/metrics value gode
internal/godebug/godebug.go:40
↓ 1 callersFunctionIsTrue
IsTrue reports whether the value is 'true', in the sense of not the zero of its type, and whether the value has a meaningful truth value. This is the
internal/text/template/exec.go:373
↓ 1 callersFunctionJSEscapeString
JSEscapeString returns the escaped JavaScript equivalent of the plain text data s.
htmltmpl/escape.go:995
↓ 1 callersFunctionJSEscaper
JSEscaper returns the escaped JavaScript equivalent of the textual representation of its arguments.
internal/text/template/funcs.go:742
↓ 1 callersMethodMarshalJSON
()
live/internal/phx/reply.go:203
↓ 1 callersFunctionNew
New returns a new Setting for the $GODEBUG setting with the given name.
internal/godebug/godebug.go:9
↓ 1 callersFunctionNewEmptyUploadReply
(up UploadMsg)
live/internal/phx/reply.go:83
↓ 1 callersFunctionNewError
(joinRef string, msgRef string, topic string)
live/internal/phx/reply.go:183
↓ 1 callersFunctionNewNav
(topic, event string, p NavPayload)
live/internal/phx/reply.go:175
↓ 1 callersFunctionNewRedirect
(msg Msg, to string)
live/internal/phx/reply.go:153
↓ 1 callersFunctionNewUploadConstraints
NewUploadConstraints returns a new UploadConstraints merged with the default values
live/uploads.go:174
↓ 1 callersFunctionNewWebsocketHandler
NewWebsocketHandler returns a http.Handler that handles upgrading HTTP requests to WebSockets and handling message routing.
live/liveview.go:221
↓ 1 callersFunctionPageTitle
PageTitle updates the page title for the View
live/liveview.go:850
↓ 1 callersMethodPageTitleConfig
()
live/liveview.go:212
↓ 1 callersFunctionParseFS
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:492
↓ 1 callersFunctionParseFS
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:138
↓ 1 callersFunctionParseFiles
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
htmltmpl/template.go:383
↓ 1 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
htmltmpl/template.go:448
↓ 1 callersFunctionPushEvent
PushEvent sends an event to the View which a Hook can respond to
live/liveview.go:909
↓ 1 callersFunctionRedirect
Redirect sends an event to the View that triggers a full page load to url.
live/liveview.go:899
↓ 1 callersMethodRemoveEntry
RemoveEntry removes an entry from the upload config for given ref
live/uploads.go:147
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:140
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:372
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:400
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:429
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:470
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:504
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:622
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:762
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:793
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:821
↓ 1 callersMethodString
()
internal/text/template/parse/node.go:853
↓ 1 callersFunctionURLQueryEscaper
URLQueryEscaper returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.
internal/text/template/funcs.go:748
↓ 1 callersFunctionUploadedEntries
Returns two sets of files that are being uploaded, those `completed` and those `inProgress` for a given UploadConfig (by name). Unlike `consumeUpload
live/uploads.go:261
↓ 1 callersMethodValidate
Validate validates that the provided URL value are valid for the given struct. It returns a map of field name to error message for each field that is
changeset/changeset.go:14
↓ 1 callersMethodValue
Value returns the current value for the GODEBUG setting s. Value maintains an internal cache that is synchronized with changes to the $GODEBUG enviro
internal/godebug/godebug.go:30
↓ 1 callersMethod__beforeUpdate
()
public/js/index.js:3475
↓ 1 callersMethod__cleanup__
()
public/js/index.js:3518
↓ 1 callersFunction__commonJS
(cb, mod)
public/js/index.js:8
↓ 1 callersFunction__copyProps
(to, from, except, desc)
public/js/index.js:11
↓ 1 callersMethod__destroyed
()
public/js/index.js:3478
↓ 1 callersMethod__disconnected
()
public/js/index.js:3487
↓ 1 callersMethod__mounted
()
public/js/index.js:3469
↓ 1 callersMethod__reconnected
()
public/js/index.js:3481
↓ 1 callersFunction__toESM
(mod, isNodeMode, target)
public/js/index.js:19
↓ 1 callersMethodackJoin
(_child)
public/js/index.js:4116
↓ 1 callersMethodaction
Action: control command ("|" command)* Left delim is past. Now get actions. First word could be a keyword such as range.
internal/text/template/parse/parse.go:394
↓ 1 callersMethodactiveFileInputs
(formEl)
public/js/index.js:2222
↓ 1 callersFunctionaddFuncs
addFuncs adds to values the functions in funcs. It does no checking of the input - call addValueFuncs first.
internal/text/template/funcs.go:105
↓ 1 callersMethodaddHook
(el)
public/js/index.js:4182
↓ 1 callersMethodaddTransition
(time, onStart, onDone)
public/js/index.js:5590
↓ 1 callersMethodappendDynamicWithStatic
appendDynamicWithStatic adds a to t's dynamics, preserving the alternating static/dynamic layout. Note that the empty static that gets appended here w
internal/tmpl/tree.go:92
↓ 1 callersFunctionappendEscapedASCII
(dst []byte, c byte)
internal/json/string.go:54
↓ 1 callersFunctionappendHexUint16
appendHexUint16 appends src to dst as a 4-byte hexadecimal number.
internal/json/string.go:76
↓ 1 callersMethodassociate
associate installs the new template into the group of templates associated with t. The two are already known to share the common structure. The boolea
internal/text/template/template.go:228
↓ 1 callersMethodattachTrueDocEl
()
public/js/index.js:3969
↓ 1 callersMethodbackup3
backup3 backs the input stream up three tokens The zeroth token is already there.
internal/text/template/parse/parse.go:94
↓ 1 callersFunctionbarPositionCSS
(n, speed, ease)
public/js/index.js:211
↓ 1 callersMethodbatchSend
(messages)
public/js/index.js:802
↓ 1 callersMethodbefore
(kind, callback)
public/js/index.js:2936
↓ 1 callersMethodbindChannel
()
public/js/index.js:4227
↓ 1 callersMethodbindClicks
()
public/js/index.js:5292
↓ 1 callersMethodbindForms
()
public/js/index.js:5468
↓ 1 callersMethodbindNav
()
public/js/index.js:5340
↓ 1 callersMethodblockControl
Block: {{block stringValue pipeline}} Block keyword is past. The name must be something that can evaluate to a string. The pipeline is mandatory.
internal/text/template/parse/parse.go:626
↓ 1 callersMethodblurActiveElement
()
public/js/index.js:5162
↓ 1 callersMethodbreakControl
Break: {{break}} Break keyword is past.
internal/text/template/parse/parse.go:426
← previousnext →501–600 of 1,499, ranked by callers