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
↓ 170 callers
Method
String
()
internal/text/template/parse/node.go:23
↓ 131 callers
Function
mkItem
(typ itemType, text string)
internal/text/template/parse/lex_test.go:64
↓ 120 callers
Method
Parse
Parse parses text as a template body for t. Named template definitions ({{define ...}} or {{block ...}} statements) in text define additional template
htmltmpl/template.go:187
↓ 97 callers
Function
New
New allocates a new HTML template with the given name.
htmltmpl/template.go:285
↓ 95 callers
Method
Error
(string)
changeset/changeset.go:33
↓ 77 callers
Method
Execute
Execute applies a parsed template to the specified data object, writing the output to wr. If an error occurs executing the template or writing its out
htmltmpl/template.go:121
↓ 76 callers
Method
Parse
Parse parses the template definition string to construct a representation of the template for execution. If either action delimiter string is empty, t
internal/text/template/parse/parse.go:245
↓ 73 callers
Function
Must
Must is a helper that wraps a call to a function returning (*Template, error) and panics if the error is non-nil. It is intended for use in variable i
htmltmpl/template.go:367
↓ 61 callers
Method
Type
()
internal/text/template/parse/node.go:22
↓ 57 callers
Function
New
New allocates a new, undefined template with the given name.
internal/text/template/template.go:39
↓ 51 callers
Method
errorf
errorf records an ExecError and terminates processing.
internal/text/template/exec.go:151
↓ 48 callers
Method
binding
(kind)
public/js/index.js:4781
↓ 45 callers
Method
push
(event, payload, timeout = this.timeout)
public/js/index.js:547
↓ 41 callers
Method
Execute
Execute applies a parsed template to the specified data object, and writes the output to wr. If an error occurs executing the template or writing its
internal/text/template/exec.go:222
↓ 38 callers
Method
New
New allocates a new HTML template associated with the given one and with the same delimiters. The association, which is transitive, allows one templat
htmltmpl/template.go:305
↓ 30 callers
Method
log
(kind, msg, data)
public/js/index.js:1056
↓ 28 callers
Method
New
New allocates a new, undefined template associated with the given one and with the same delimiters. The association, which is transitive, allows one t
internal/text/template/template.go:59
↓ 27 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
htmltmpl/template.go:247
↓ 25 callers
Method
Len
()
internal/fmtsort/sort.go:26
↓ 23 callers
Method
ExecuteTemplate
ExecuteTemplate applies the template associated with t that has the given name to the specified data object and writes the output to wr. If an error o
htmltmpl/template.go:135
↓ 23 callers
Function
ct
(typ reflect.Type, args ...any)
internal/fmtsort/sort_test.go:47
↓ 23 callers
Method
emit
emit passes the trailing text as an item back to the parser.
internal/text/template/parse/lex.go:179
↓ 22 callers
Method
isConnected
()
public/js/index.js:1218
↓ 21 callers
Method
dispatchEvent
(event, payload = {})
public/js/index.js:5410
↓ 19 callers
Method
at
at marks the state to be on node n, for error reporting.
internal/text/template/exec.go:120
↓ 19 callers
Method
errorf
errorf formats the error and terminates processing.
internal/text/template/parse/parse.go:161
↓ 19 callers
Method
indexOf
(parent, child)
public/js/index.js:3222
↓ 18 callers
Method
Name
Name returns the name of the template.
htmltmpl/template.go:328
↓ 18 callers
Method
Write
(p []byte)
internal/text/template/exec_test.go:1358
↓ 18 callers
Method
mustExecute
(t *Template, val any, want string)
htmltmpl/template_test.go:210
↓ 18 callers
Method
receive
(status, callback)
public/js/index.js:379
↓ 17 callers
Method
Funcs
Funcs adds the elements of the argument map to the template's function map. It must be called before the template is parsed. It panics if a value in t
htmltmpl/template.go:339
↓ 17 callers
Method
add
(kind string, options any)
live/js.go:58
↓ 16 callers
Method
JSON
()
live/internal/phx/reply.go:207
↓ 16 callers
Function
New
Parsing. New allocates a new parse tree with the given name.
internal/text/template/parse/parse.go:131
↓ 16 callers
Function
logError
(msg, obj)
public/js/index.js:1503
↓ 15 callers
Method
AppendStatic
(text string)
internal/tmpl/tree.go:26
↓ 15 callers
Method
nextNonSpace
nextNonSpace returns the next non-space token.
internal/text/template/parse/parse.go:111
↓ 14 callers
Function
Must
Functions and methods to parse templates. Must is a helper that wraps a call to a function returning (*Template, error) and panics if the error is non
internal/text/template/helper.go:24
↓ 14 callers
Function
errorf
errorf creates an error given a format string f and args. The template Name still needs to be supplied.
htmltmpl/error.go:243
↓ 14 callers
Method
errorf
errorf returns an error token and terminates the scan by passing back a nil pointer that will be the next state, terminating l.nextItem.
internal/text/template/parse/lex.go:216
↓ 14 callers
Method
next
next returns the next rune in the input.
internal/text/template/parse/lex.go:137
↓ 13 callers
Method
Update
Update updates the changeset with new data and action. If action is empty, the changeset will always return true for Valid(). Passing a non-empty acti
changeset/changeset.go:99
↓ 13 callers
Method
writeString
(s string)
internal/tmpl/tree.go:158
↓ 13 callers
Method
writeTo
writeTo writes the String output to the builder.
internal/text/template/parse/node.go:33
↓ 12 callers
Method
Lookup
Lookup returns the template with the given name that is associated with t, or nil if there is no such template.
htmltmpl/template.go:356
↓ 12 callers
Method
WriteTo
WriteTo writes a JSON representation of the tree to w.
internal/tmpl/tree.go:223
↓ 12 callers
Method
hasLogger
()
public/js/index.js:1059
↓ 12 callers
Function
stringify
stringify converts its arguments to a string and the type of the content. All pointers are dereferenced, as in the text/template package.
htmltmpl/content.go:152
↓ 11 callers
Function
NewTree
()
internal/tmpl/tree.go:22
↓ 11 callers
Method
accept
accept consumes the next rune if it's from the valid set.
internal/text/template/parse/lex.go:199
↓ 11 callers
Method
append
(n Node)
internal/text/template/parse/node.go:93
↓ 11 callers
Function
indirectInterface
indirectInterface returns the concrete value in an interface value, or else the zero reflect.Value. That is, if v represents the interface value x, th
internal/text/template/exec.go:1080
↓ 11 callers
Method
init
init guarantees that t has a valid common structure.
internal/text/template/template.go:71
↓ 11 callers
Function
newTestCase
(t *testing.T)
htmltmpl/template_test.go:185
↓ 11 callers
Method
on
(event, callback)
public/js/index.js:534
↓ 11 callers
Method
remove
(channel)
public/js/index.js:1221
↓ 11 callers
Method
reset
()
public/js/index.js:386
↓ 10 callers
Method
AppendDynamic
(d string)
internal/tmpl/tree.go:41
↓ 10 callers
Method
ExecuteTemplate
ExecuteTemplate applies the template associated with t that has the given name to the specified data object and writes the output to wr. If an error o
internal/text/template/exec.go:204
↓ 10 callers
Method
Funcs
Funcs adds the elements of the argument map to the template's function map. It must be called before the template is parsed. It panics if a value in t
internal/text/template/template.go:178
↓ 10 callers
Method
Struct
Struct returns the changeset Values decoded into a struct of T or an error if there was a problem decoding.
changeset/changeset.go:79
↓ 10 callers
Method
mustParse
(t *Template, text string)
htmltmpl/template_test.go:196
↓ 10 callers
Method
pushWithReply
(refGenerator, event, payload, onReply = function() { })
public/js/index.js:4339
↓ 10 callers
Method
requestDOMUpdate
(callback)
public/js/index.js:4938
↓ 10 callers
Method
withinOwners
(childEl, callback)
public/js/index.js:5104
↓ 9 callers
Method
Add
Add adds the named field (which should start with a period) to the end of the chain.
internal/text/template/parse/node.go:571
↓ 9 callers
Method
CopyList
()
internal/text/template/parse/node.go:113
↓ 9 callers
Method
Equal
(v *UploadMsg)
live/internal/phx/upload.go:17
↓ 9 callers
Method
Value
(string)
changeset/changeset.go:32
↓ 9 callers
Method
Write
(p []byte)
htmltmpl/exec_test.go:1326
↓ 9 callers
Method
backup
backup steps back one rune.
internal/text/template/parse/lex.go:158
↓ 9 callers
Method
isDestroyed
()
public/js/index.js:4258
↓ 9 callers
Method
peek
peek returns but does not consume the next token.
internal/text/template/parse/parse.go:101
↓ 9 callers
Method
peekNonSpace
peekNonSpace returns but does not consume the next non-space token.
internal/text/template/parse/parse.go:122
↓ 9 callers
Method
send
()
public/js/index.js:365
↓ 9 callers
Function
socketValue
socketValue returns the socket, if any, associated with ctx.
live/liveview.go:927
↓ 9 callers
Function
testExecute
(execTests []execTest, template *Template, t *testing.T)
htmltmpl/exec_test.go:767
↓ 9 callers
Method
toString
(onlyCids)
public/js/index.js:3242
↓ 8 callers
Method
Position
()
internal/text/template/parse/node.go:28
↓ 8 callers
Function
SetView
SetView marks r as corresponding to v. Its handler will result in a rendered LiveView.
live/route.go:35
↓ 8 callers
Method
Templates
Templates returns a slice of the templates associated with t, including t itself.
htmltmpl/template.go:47
↓ 8 callers
Function
decodeCSS
decodeCSS decodes CSS3 escapes given a sequence of stringchars. If there is no change, it returns the input, otherwise it returns a slice backed by a
htmltmpl/css.go:58
↓ 8 callers
Function
isCid
(cid)
public/js/index.js:1504
↓ 8 callers
Function
maybe
(el, callback)
public/js/index.js:1549
↓ 8 callers
Method
mustNotParse
(t *Template, text string)
htmltmpl/template_test.go:203
↓ 8 callers
Function
testExecute
(execTests []execTest, template *Template, t *testing.T)
internal/text/template/exec_test.go:777
↓ 8 callers
Method
unexpected
unexpected complains about the token and terminates processing.
internal/text/template/parse/parse.go:191
↓ 8 callers
Method
validateType
validateType guarantees that the value is valid and assignable to the type.
internal/text/template/exec.go:881
↓ 8 callers
Method
walk
Walk functions step through the major pieces of the template structure, generating output as they go.
internal/text/template/exec.go:280
↓ 7 callers
Method
AddParseTree
AddParseTree creates a new template with the name and parse tree and associates it with t. It returns an error if t or any associated template has al
htmltmpl/template.go:218
↓ 7 callers
Method
AppendSub
()
internal/tmpl/tree.go:45
↓ 7 callers
Method
CopyPipe
()
internal/text/template/parse/node.go:235
↓ 7 callers
Method
connect
(params)
public/js/index.js:1038
↓ 7 callers
Method
eq
eq reports whether two contexts are equal.
htmltmpl/context.go:40
↓ 7 callers
Method
evalPipeline
Eval functions evaluate pipelines, commands, and their elements and extract values from the data structure by examining fields, calling methods, and s
internal/text/template/exec.go:528
↓ 7 callers
Function
expectValuesAndChanges
(cs *Changeset[T], expectMatch bool, t *testing.T)
changeset/changeset_test.go:125
↓ 7 callers
Function
htmlReplacer
htmlReplacer returns s with runes replaced according to replacementTable and when badRunes is true, certain bad runes are allowed through unescaped.
htmltmpl/html.go:144
↓ 7 callers
Method
joinRef
()
public/js/index.js:595
↓ 7 callers
Function
jsValEscaper
jsValEscaper escapes its inputs to a JS Expression (section 11.14) that has neither side-effects nor free variables outside (NaN, Infinity).
htmltmpl/js.go:149
next →
1–100 of 1,499, ranked by callers