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
Function
ExampleTemplate_func
This example demonstrates a custom function to process template text. It installs the strings.Title function and uses it to Make Title Text Look Good
internal/text/template/examplefunc_test.go:17
Function
ExampleTemplate_glob
The following example is duplicated in text/template; keep them in sync. Here we demonstrate loading a set of templates from a directory.
htmltmpl/examplefiles_test.go:44
Function
ExampleTemplate_glob
Here we demonstrate loading a set of templates from a directory.
internal/text/template/examplefiles_test.go:41
Function
ExampleTemplate_helpers
The following example is duplicated in text/template; keep them in sync. This example demonstrates one way to share some templates and use them in dif
htmltmpl/examplefiles_test.go:118
Function
ExampleTemplate_helpers
This example demonstrates one way to share some templates and use them in different contexts. In this variant we add multiple driver templates by hand
internal/text/template/examplefiles_test.go:75
Function
ExampleTemplate_parsefiles
Here we demonstrate loading a set of templates from files in different directories
htmltmpl/examplefiles_test.go:76
Function
ExampleTemplate_share
The following example is duplicated in text/template; keep them in sync. This example demonstrates how to use one group of driver templates with disti
htmltmpl/examplefiles_test.go:166
Function
ExampleTemplate_share
This example demonstrates how to use one group of driver templates with distinct sets of helper templates.
internal/text/template/examplefiles_test.go:121
Function
Example_autoescaping
()
htmltmpl/example_test.go:85
Function
Example_escape
()
htmltmpl/example_test.go:99
Function
FileInputTag
FileInputTag renders a file input tag for uploading files to a View.
live/funcs.go:99
Function
Fuzz
(in []byte)
internal/tmpl/fuzz/fuzz.go:9
Function
Fuzz
(f *testing.F)
internal/tmpl/fuzz/fuzz_test.go:9
Function
FuzzPhxParse
(f *testing.F)
live/internal/phx/fuzz_test.go:27
Function
FuzzTreeSerialization
(f *testing.F)
internal/tmpl/tree_test.go:271
Function
FuzzUploadMsgUnmarshalBinary
(f *testing.F)
live/internal/phx/fuzz_test.go:8
Method
GetU
A few methods to test chaining.
htmltmpl/exec_test.go:245
Method
GetU
A few methods to test chaining.
internal/text/template/exec_test.go:241
Function
GetView
GetView returns the View of type T corresponding to r. If no such view has been set, returns the zero value for T.
live/route.go:46
Function
HTMLEscape
Forwarding functions so that clients need only import this package to reach the general escaping functions of text/template. HTMLEscape writes to w th
htmltmpl/escape.go:974
Function
HTMLEscapeString
HTMLEscapeString returns the escaped HTML equivalent of the plain text data s.
htmltmpl/escape.go:979
Function
HTMLEscaper
HTMLEscaper returns the escaped HTML equivalent of the textual representation of its arguments.
htmltmpl/escape.go:985
Method
HandleEvent
(ctx context.Context, e *live.Event)
examples/main.go:195
Method
HandleEvent
(ctx context.Context, e *live.Event)
examples/main.go:319
Method
HandleEvent
(ctx context.Context, e *live.Event)
examples/main.go:366
Method
HandleEvent
(ctx context.Context, e *live.Event)
examples/main.go:424
Method
HandleEvent
(ctx context.Context, e *live.Event)
examples/main.go:515
Method
HandleInfo
(ctx context.Context, ci *live.Info)
examples/main.go:189
Method
HandleInfo
(ctx context.Context, e *live.Info)
examples/main.go:525
Method
HandleParams
(ctx context.Context, url *url.URL)
examples/main.go:291
Method
HandleParams
(ctx context.Context, url *url.URL)
examples/main.go:529
Method
HasError
(string)
changeset/changeset.go:36
Method
HasError
HasError returns true if Error(key) returns a non-nil error
changeset/changeset.go:174
Method
Header
()
live/route.go:19
Method
HideModal
()
examples/main.go:490
Function
ImagePreviewTag
ImagePreviewTag renders a preview image for a file upload.
live/funcs.go:146
Function
InputTag
InputTag renders an input tag with the given key and value for the provided changeset.
changeset/funcs.go:29
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
htmltmpl/template.go:484
Function
JSEscape
JSEscape writes to w the escaped JavaScript equivalent of the plain text data b.
htmltmpl/escape.go:990
Function
JSEscaper
JSEscaper returns the escaped JavaScript equivalent of the textual representation of its arguments.
htmltmpl/escape.go:1001
Method
JSON
()
live/internal/phx/reply.go:191
Method
JSON
()
live/internal/phx/reply.go:199
Method
Less
(i, j int)
internal/fmtsort/sort.go:27
Function
LiveViewTag
LiveView renders a container for a live.View - required for layoutTemplates.
live/funcs.go:82
Method
MAdd
(a int, b []int)
htmltmpl/exec_test.go:226
Method
MAdd
(a int, b []int)
internal/text/template/exec_test.go:222
Function
MakeView
MakeView will either get the existing View of type T associated with r or create a View of type T. If r is not a LiveView-enabled request, returns the
live/route.go:62
Method
MarshalJSON
()
htmltmpl/escape_test.go:21
Method
MarshalJSON
()
htmltmpl/escape_test.go:28
Method
MarshalJSON
()
live/js.go:94
Method
MarshalJSON
()
live/js.go:127
Method
MarshalJSON
()
live/js.go:159
Method
MarshalJSON
()
live/js.go:198
Method
MarshalJSON
()
live/internal/phx/reply.go:195
Method
MarshalJSON
()
live/internal/phx/reply.go:215
Method
Method0
()
htmltmpl/exec_test.go:96
Method
Method0
()
htmltmpl/exec_test.go:182
Method
Method0
Simple methods with and without arguments.
htmltmpl/exec_test.go:204
Method
Method0
()
internal/text/template/exec_test.go:92
Method
Method0
()
internal/text/template/exec_test.go:178
Method
Method0
Simple methods with and without arguments.
internal/text/template/exec_test.go:200
Method
Method1
(a int)
htmltmpl/exec_test.go:208
Method
Method1
(a int)
internal/text/template/exec_test.go:204
Method
Method2
(a uint16, b string)
htmltmpl/exec_test.go:212
Method
Method2
(a uint16, b string)
internal/text/template/exec_test.go:208
Method
Method3
(v any)
htmltmpl/exec_test.go:216
Method
Method3
(v any)
internal/text/template/exec_test.go:212
Method
Middleware
(next http.Handler)
live/liveview.go:73
Method
Mount
(ctx context.Context, p live.Params)
examples/main.go:172
Method
Mount
(ctx context.Context, p live.Params)
examples/main.go:280
Method
Mount
(ctx context.Context, p live.Params)
examples/main.go:403
Method
Mount
(ctx context.Context, p live.Params)
examples/main.go:503
Method
MyError
MyError returns a value and an error according to its argument.
htmltmpl/exec_test.go:237
Method
MyError
MyError returns a value and an error according to its argument.
internal/text/template/exec_test.go:233
Method
Name
Name returns the name of the setting.
internal/godebug/godebug.go:14
Function
Navigation
Navigation renders "live" navigation links that support navigating without a page refresh.
live/funcs.go:43
Function
New
New returns a new Changeset of type T using the Config and initilizes the Changeset with the given initial values.
changeset/changeset.go:86
Function
NewHTTPHandler
NewHTTPHandler returns a new HTTPHandler with the given config
live/liveview.go:830
Method
PageTitleConfig
()
examples/main.go:305
Method
Position
()
internal/text/template/parse/node.go:43
Function
PushNav
PushNav supports push patching and push redirecting from server to View
live/liveview.go:866
Method
Recur
()
htmltmpl/exec_test.go:1795
Method
RemoveError
(string)
changeset/changeset.go:35
Method
RemoveError
RemoveError removes the error for the given key returning the error at the given key or nil if there was no error.
changeset/changeset.go:192
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:238
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:301
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:338
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:375
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:412
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:508
Method
Render
(ctx context.Context, meta *live.Meta)
examples/main.go:536
Method
ShowModal
()
examples/main.go:483
Method
SomeMethod
(x int)
htmltmpl/escape_test.go:1934
Method
String
()
htmltmpl/element_string.go:22
Method
String
()
htmltmpl/delim_string.go:21
Method
String
()
htmltmpl/exec_test.go:108
Method
String
()
htmltmpl/urlpart_string.go:21
Method
String
()
htmltmpl/jsctx_string.go:20
Method
String
()
htmltmpl/state_string.go:46
Method
String
()
htmltmpl/context.go:31
← previous
next →
901–1,000 of 1,499, ranked by callers