Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/canopyclimate/golive
/ types & classes
Types & classes
179 in github.com/canopyclimate/golive
⨍
Functions
1,499
◇
Types & classes
179
↓ 16 callers
TypeAlias
Pos
Pos represents a byte position in the original input text from which this template was parsed.
internal/text/template/parse/node.go:41
↓ 2 callers
Struct
JS
JS provides a way to precompose simple client-side DOM changes that don't require a round-trip to the server. Create a JS struct, call its methods to
live/js.go:19
↓ 1 callers
TypeAlias
ErrorWriter
htmltmpl/exec_test.go:1324
↓ 1 callers
TypeAlias
ErrorWriter
internal/text/template/exec_test.go:1356
↓ 1 callers
TypeAlias
FuncMap
FuncMap is the type of the map defining the mapping from names to functions. Each function must have either a single return value, or two return value
internal/text/template/funcs.go:33
↓ 1 callers
Interface
I
A non-empty interface.
htmltmpl/exec_test.go:181
↓ 1 callers
Interface
I
A non-empty interface.
internal/text/template/exec_test.go:177
↓ 1 callers
TypeAlias
Issue7379
htmltmpl/escape_test.go:1932
↓ 1 callers
TypeAlias
attr
go:generate stringer -type attr attr identifies the current HTML attribute when inside the attribute, that is, starting from stateAttrName until state
htmltmpl/context.go:272
↓ 1 callers
TypeAlias
delim
delim is the delimiter that will end the current HTML attribute.
htmltmpl/context.go:193
↓ 1 callers
TypeAlias
element
element identifies the HTML element when inside a start tag or special body. Certain HTML element (for example <script> and <style>) have bodies that
htmltmpl/context.go:250
↓ 1 callers
TypeAlias
jsCtx
jsCtx determines whether a '/' starts a regular expression literal or a division operator.
htmltmpl/context.go:232
↓ 1 callers
Struct
state
state represents the state of an execution. It's not part of the template so that multiple executions of the same template can execute in parallel.
internal/text/template/exec.go:37
↓ 1 callers
TypeAlias
state
state describes a high-level HTML parser state. It bounds the top of the element stack, and by extension the HTML insertion mode, but also contains s
htmltmpl/context.go:87
↓ 1 callers
TypeAlias
urlPart
urlPart identifies a part in an RFC 3986 hierarchical URL to allow different encoding strategies.
htmltmpl/context.go:211
Class
public/js/index.js:347
Class
public/js/index.js:347
Struct
A
internal/text/template/exec_test.go:1803
Struct
ActionNode
ActionNode holds an action (something bounded by delimiters). Control actions have their own nodes; ActionNode represents simple ones such as field ev
internal/text/template/parse/node.go:258
Interface
Any
Any represents any Changeset. It is useful for working with arbitrary changesets outside of generics.
changeset/changeset.go:31
Struct
B
internal/text/template/exec_test.go:1806
Struct
BoolNode
BoolNode holds a boolean constant.
internal/text/template/parse/node.go:611
Struct
BranchNode
BranchNode is the common representation of if, range, and with.
internal/text/template/parse/node.go:870
Struct
BreakNode
BreakNode represents a {{break}} action.
internal/text/template/parse/node.go:942
Struct
ChainNode
ChainNode holds a term followed by a chain of field accesses (identifier starting with '.'). The names may be chained ('.x.y'). The periods are droppe
internal/text/template/parse/node.go:558
Struct
Changeset
Changeset provides a powerful API for decoding URL values into a struct and validating the struct. It provides a way to check if a given struct is val
changeset/changeset.go:43
Struct
CommandNode
CommandNode holds a command (a pipeline inside an evaluating action).
internal/text/template/parse/node.go:292
Struct
CommentNode
CommentNode holds a comment.
internal/text/template/parse/node.go:157
Struct
Config
Config is the configuration for a live application.
live/liveview.go:25
Struct
Config
Config is a configuration for a Changeset providing implementations of Validator and Decoder.
changeset/changeset.go:24
Struct
ConsumeUploadedEntriesMeta
live/uploads.go:192
Struct
ContinueNode
ContinueNode represents a {{continue}} action.
internal/text/template/parse/node.go:959
Struct
Counter
Counter is a live.View that has a counter, a basic form, and a ticker. TODO split this into different views instead of the amalgamation it is now.
examples/main.go:164
Struct
CustomError
internal/text/template/exec_test.go:923
Interface
Decoder
Decoder decodes a url.Values into a struct.
changeset/changeset.go:18
Struct
Diff
live/internal/phx/reply.go:26
Struct
DotNode
DotNode holds the special identifier '.'.
internal/text/template/parse/node.go:453
Struct
ErrView
View that throws errors
examples/main.go:513
Struct
Error
Error describes a problem encountered during template Escaping.
htmltmpl/error.go:14
Struct
Error
live/internal/phx/reply.go:51
TypeAlias
ErrorCode
ErrorCode is a code for a kind of error.
htmltmpl/error.go:29
Struct
Event
Event is the event data sent from the client
live/liveview.go:803
Interface
EventHandler
EventHandler is an interface that can be implemented by a View to be notified when user events are received from the client.
live/liveview.go:199
Struct
ExecError
TODO: It would be nice if ExecError was more broken down, but the way ErrorContext embeds the template name makes the processing too clumsy. ExecError
internal/text/template/exec.go:137
Struct
FieldNode
FieldNode holds a field (identifier starting with '.'). The names may be chained ('.x.y'). The period is dropped from each ident.
internal/text/template/parse/node.go:523
Struct
FormWithBool
changeset/changeset_test.go:227
Struct
GoPlaygroundChangesetConfig
GoPlaygroundChangesetConfig provides a GoPlayground Validate and Decoder based implementation of the Validator and Decoder interfaces.
changeset/goplayground.go:19
Struct
HTTPHandler
HTTPHandler handles HTTP requests for a View
live/liveview.go:835
Struct
Heartbeat
live/internal/phx/reply.go:57
Struct
HideOpts
live/js.go:118
Struct
IdentifierNode
IdentifierNode holds an identifier.
internal/text/template/parse/node.go:344
Struct
IfNode
IfNode represents an {{if}} action and its commands.
internal/text/template/parse/node.go:929
TypeAlias
Info
Info is internal event data from the server
live/liveview.go:827
Interface
InfoHandler
InfoHandler is an interface that can be implemented by a View to be notified when info (i.e. "internal") messages are received from the server.
live/liveview.go:205
Struct
LayoutDot
LayoutDot is the information available when initially writing our your container layout. It should be passed into the liveViewContainerTag funcmap fun
live/liveview.go:942
Struct
ListNode
Nodes. ListNode holds a sequence of nodes.
internal/text/template/parse/node.go:82
TypeAlias
LiveNavType
live/liveview.go:858
Struct
Meta
Meta is the metadata passed to a View's Render method as well as added to the template context via the .Meta field.
live/liveview.go:163
Struct
ModalDemo
examples/main.go:479
TypeAlias
Mode
A mode value is a set of flags (or 0). Modes control parser behavior.
internal/text/template/parse/parse.go:38
Struct
MoreEvents
Example with keyup, keydown, blur, focus
examples/main.go:314
Interface
Mounter
Mounter is an interface that can be implemented by a View to be notified when it is mounted.
live/liveview.go:187
Struct
Msg
live/internal/phx/phx.go:8
Struct
MyPhotos
examples/main.go:396
Struct
Nav
live/internal/phx/reply.go:43
Struct
Nav
examples/main.go:275
Struct
NavPayload
live/internal/phx/reply.go:38
Struct
NilNode
NilNode holds the special identifier 'nil' representing an untyped nil constant.
internal/text/template/parse/node.go:487
Interface
Node
Changed to "%q" in tests for better error messages. A Node is an element in the parse tree. The interface is trivial. The interface contains an unexpo
internal/text/template/parse/node.go:21
TypeAlias
NodeType
NodeType identifies the type of a parse tree node.
internal/text/template/parse/node.go:37
Struct
NumberNode
NumberNode holds a number: signed or unsigned integer, float, or complex. The value is parsed and stored under all the types that can represent the va
internal/text/template/parse/node.go:644
Struct
PageTitleConfig
PageTitleConfig structures the contents of a page’s title tag. It’s available in WriteLayout for your own use, and subsequent PageTitle() calls will u
live/liveview.go:934
Interface
PageTitleConfigurer
PageTitleConfgurer is an interface that can be implemented by a View to configure the liveTitleTag template function.
live/liveview.go:211
Struct
Params
Params is the data passed to a View's Mount method.
live/liveview.go:170
Interface
ParamsHandler
ParamsHandler is an interface that can be implemented by a View to be notified when the URL parameters change (and after a view is first mounted).
live/liveview.go:193
Struct
Payload
live/internal/phx/reply.go:13
Struct
Person
Person is the struct that we will validate using form input and changesets
examples/main.go:157
Struct
Person
changeset/changeset_test.go:8
Struct
Photo
examples/main.go:386
Struct
PhotosForm
examples/main.go:392
Struct
Ping
Example of server push events
examples/main.go:364
Struct
PipeNode
PipeNode holds a pipeline with optional declaration
internal/text/template/parse/node.go:189
Struct
PushOpts
live/js.go:228
Struct
RangeNode
RangeNode represents a {{range}} action and its commands.
internal/text/template/parse/node.go:976
Struct
Recipient
Prepare some data to insert into the template.
internal/text/template/example_test.go:31
Struct
Redirect
live/internal/phx/reply.go:34
Struct
Reply
live/internal/phx/reply.go:18
Struct
Response
live/internal/phx/reply.go:5
TypeAlias
S
htmltmpl/exec_test.go:94
TypeAlias
S
internal/text/template/exec_test.go:90
Struct
Setting
A Setting is a single setting in the $GODEBUG environment variable.
internal/godebug/godebug.go:4
Struct
ShowOpts
live/js.go:148
Struct
SortedMap
Note: Throughout this package we avoid calling reflect.Value.Interface as it is not always legal to do so and it's easier to avoid the issue than to f
internal/fmtsort/sort.go:21
Struct
StringNode
StringNode holds a string constant. The value has been "unquoted".
internal/text/template/parse/node.go:781
Struct
T
T has lots of interesting pieces to use to test execution.
htmltmpl/exec_test.go:26
Struct
T
T has lots of interesting pieces to use to test execution.
internal/text/template/exec_test.go:22
Struct
Template
Template is a specialized Template from "text/template" that produces a safe HTML document fragment.
htmltmpl/template.go:22
Struct
Template
Template is the representation of a parsed template. The *parse.Tree field is exported only for use by html/template and should be treated as unexport
internal/text/template/template.go:30
Struct
TemplateNode
TemplateNode represents a {{template}} action.
internal/text/template/parse/node.go:1002
Struct
TestCase
changeset/changeset_test.go:22
next →
1–100 of 179, ranked by callers