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
↓ 2 callers
Function
sprint
(data any)
internal/fmtsort/sort_test.go:139
↓ 2 callers
Method
startTimeout
()
public/js/index.js:406
↓ 2 callers
Function
stringsContains
(list []string, s string)
internal/text/template/exec.go:1194
↓ 2 callers
Function
tURL
tURL is the context transition function for the URL state.
htmltmpl/transition.go:260
↓ 2 callers
Method
templateStatic
(part, templates)
public/js/index.js:3347
↓ 2 callers
Function
testParse
(doCopy bool, t *testing.T)
internal/text/template/parse/parse_test.go:330
↓ 2 callers
Method
textOrAction
textOrAction: text | comment | action
internal/text/template/parse/parse.go:367
↓ 2 callers
Method
toOutputBuffer
(rendered, templates, output)
public/js/index.js:3354
↓ 2 callers
Method
transitionRemoves
(elements)
public/js/index.js:5081
↓ 2 callers
Method
triggerBeforeUpdateHook
(fromEl, toEl)
public/js/index.js:3999
↓ 2 callers
Method
triggerDOM
(kind, args)
public/js/index.js:4917
↓ 2 callers
Function
truth
Boolean logic.
internal/text/template/funcs.go:376
↓ 2 callers
Method
uploadFiles
(formEl, targetCtx, ref, cid, onComplete)
public/js/index.js:4651
↓ 2 callers
Function
urlEscaper
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 callers
Function
urlProcessor
urlProcessor normalizes (when norm is true) or escapes its input to produce a valid hierarchical or opaque URL part.
htmltmpl/url.go:73
↓ 2 callers
Method
walkIfOrWith
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 callers
Function
withSocket
withSocket returns a context built by associating s with ctx.
live/liveview.go:922
↓ 2 callers
Method
wrapPush
(view, opts, push)
public/js/index.js:4955
↓ 2 callers
Method
writeByte
(b byte)
internal/tmpl/tree.go:149
↓ 2 callers
Method
writeDynamic
(d any)
internal/tmpl/tree.go:207
↓ 2 callers
Method
writeError
(err error)
internal/text/template/exec.go:173
↓ 1 callers
Method
AddEntries
AddEnties adds all the entries to the upload config and validates each entry and the config as a whole
live/uploads.go:117
↓ 1 callers
Function
AllowUpload
Allows file uploads for the given `LiveView`and configures the upload options (filetypes, size, etc).
live/uploads.go:199
↓ 1 callers
Function
CancelUpload
Cancels the file upload for a given UploadConfig by config name and file ref.
live/uploads.go:214
↓ 1 callers
Function
Compare
(a, b reflect.Value)
internal/fmtsort/export_test.go:9
↓ 1 callers
Function
ConsumeUploadedEntries
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 callers
Method
Decode
Decode decodes the URL values into the struct pointer.
changeset/goplayground.go:114
↓ 1 callers
Method
Error
Error returns the error for the given key.
changeset/changeset.go:166
↓ 1 callers
Method
ExecuteViewTemplate
(buf *strings.Builder)
live/liveview.go:951
↓ 1 callers
Function
Funcs
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 callers
Function
Funcs
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 callers
Function
HTMLEscaper
HTMLEscaper returns the escaped HTML equivalent of the textual representation of its arguments.
internal/text/template/funcs.go:651
↓ 1 callers
Method
HandleInfo
(context.Context, *Info)
live/liveview.go:206
↓ 1 callers
Method
IncNonDefault
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 callers
Function
IsTrue
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 callers
Function
JSEscapeString
JSEscapeString returns the escaped JavaScript equivalent of the plain text data s.
htmltmpl/escape.go:995
↓ 1 callers
Function
JSEscaper
JSEscaper returns the escaped JavaScript equivalent of the textual representation of its arguments.
internal/text/template/funcs.go:742
↓ 1 callers
Method
MarshalJSON
()
live/internal/phx/reply.go:203
↓ 1 callers
Function
New
New returns a new Setting for the $GODEBUG setting with the given name.
internal/godebug/godebug.go:9
↓ 1 callers
Function
NewEmptyUploadReply
(up UploadMsg)
live/internal/phx/reply.go:83
↓ 1 callers
Function
NewError
(joinRef string, msgRef string, topic string)
live/internal/phx/reply.go:183
↓ 1 callers
Function
NewNav
(topic, event string, p NavPayload)
live/internal/phx/reply.go:175
↓ 1 callers
Function
NewRedirect
(msg Msg, to string)
live/internal/phx/reply.go:153
↓ 1 callers
Function
NewUploadConstraints
NewUploadConstraints returns a new UploadConstraints merged with the default values
live/uploads.go:174
↓ 1 callers
Function
NewWebsocketHandler
NewWebsocketHandler returns a http.Handler that handles upgrading HTTP requests to WebSockets and handling message routing.
live/liveview.go:221
↓ 1 callers
Function
PageTitle
PageTitle updates the page title for the View
live/liveview.go:850
↓ 1 callers
Method
PageTitleConfig
()
live/liveview.go:212
↓ 1 callers
Function
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:492
↓ 1 callers
Function
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:138
↓ 1 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
htmltmpl/template.go:383
↓ 1 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
htmltmpl/template.go:448
↓ 1 callers
Function
PushEvent
PushEvent sends an event to the View which a Hook can respond to
live/liveview.go:909
↓ 1 callers
Function
Redirect
Redirect sends an event to the View that triggers a full page load to url.
live/liveview.go:899
↓ 1 callers
Method
RemoveEntry
RemoveEntry removes an entry from the upload config for given ref
live/uploads.go:147
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:140
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:372
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:400
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:429
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:470
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:504
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:622
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:762
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:793
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:821
↓ 1 callers
Method
String
()
internal/text/template/parse/node.go:853
↓ 1 callers
Function
URLQueryEscaper
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 callers
Function
UploadedEntries
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 callers
Method
Validate
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 callers
Method
Value
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 callers
Method
__beforeUpdate
()
public/js/index.js:3475
↓ 1 callers
Method
__cleanup__
()
public/js/index.js:3518
↓ 1 callers
Function
__commonJS
(cb, mod)
public/js/index.js:8
↓ 1 callers
Function
__copyProps
(to, from, except, desc)
public/js/index.js:11
↓ 1 callers
Method
__destroyed
()
public/js/index.js:3478
↓ 1 callers
Method
__disconnected
()
public/js/index.js:3487
↓ 1 callers
Method
__mounted
()
public/js/index.js:3469
↓ 1 callers
Method
__reconnected
()
public/js/index.js:3481
↓ 1 callers
Function
__toESM
(mod, isNodeMode, target)
public/js/index.js:19
↓ 1 callers
Method
ackJoin
(_child)
public/js/index.js:4116
↓ 1 callers
Method
action
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 callers
Method
activeFileInputs
(formEl)
public/js/index.js:2222
↓ 1 callers
Function
addFuncs
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 callers
Method
addHook
(el)
public/js/index.js:4182
↓ 1 callers
Method
addTransition
(time, onStart, onDone)
public/js/index.js:5590
↓ 1 callers
Method
appendDynamicWithStatic
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 callers
Function
appendEscapedASCII
(dst []byte, c byte)
internal/json/string.go:54
↓ 1 callers
Function
appendHexUint16
appendHexUint16 appends src to dst as a 4-byte hexadecimal number.
internal/json/string.go:76
↓ 1 callers
Method
associate
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 callers
Method
attachTrueDocEl
()
public/js/index.js:3969
↓ 1 callers
Method
backup3
backup3 backs the input stream up three tokens The zeroth token is already there.
internal/text/template/parse/parse.go:94
↓ 1 callers
Function
barPositionCSS
(n, speed, ease)
public/js/index.js:211
↓ 1 callers
Method
batchSend
(messages)
public/js/index.js:802
↓ 1 callers
Method
before
(kind, callback)
public/js/index.js:2936
↓ 1 callers
Method
bindChannel
()
public/js/index.js:4227
↓ 1 callers
Method
bindClicks
()
public/js/index.js:5292
↓ 1 callers
Method
bindForms
()
public/js/index.js:5468
↓ 1 callers
Method
bindNav
()
public/js/index.js:5340
↓ 1 callers
Method
blockControl
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 callers
Method
blurActiveElement
()
public/js/index.js:5162
↓ 1 callers
Method
breakControl
Break: {{break}} Break keyword is past.
internal/text/template/parse/parse.go:426
← previous
next →
501–600 of 1,499, ranked by callers