MCPcopy Index your code

hub / github.com/donseba/go-htmx / functions

Functions228 in github.com/donseba/go-htmx

↓ 1 callersMethodinjectGlobalData
(input map[string]any)
component.go:42
↓ 1 callersMethodisWrapped
()
component.go:45
↓ 1 callersFunctionmainContent
()
examples/snake/snake.go:151
↓ 1 callersFunctionmoveSnake
(game *SnakeGame)
examples/snake/game.go:5
↓ 1 callersFunctionnewHistory
(maxSize int)
sse/sse.go:196
↓ 1 callersMethodpartials
partials returns the partials
component.go:291
↓ 1 callersFunctionrandStringRunes
(n int)
examples/snake/snake.go:143
↓ 1 callersFunctionrandStringRunes
(n int)
examples/sse/sse.go:78
↓ 1 callersMethodregister
register adds a client to the manager.
sse/sse.go:182
↓ 1 callersMethodrenderNamed
renderNamed renders the given templates with the given data it has all the default template functions and the additional template functions that are a
component.go:115
↓ 1 callersMethodstartWorkers
startWorkers starts worker goroutines for message broadcasting.
sse/sse.go:159
↓ 1 callersMethodtarget
()
component.go:47
↓ 1 callersMethodunregister
unregister removes a client from the manager.
sse/sse.go:187
↓ 1 callersMethodwrapOutput
wrapOutput recursively wraps the output in its parent components
handler.go:288
↓ 1 callersMethodwrapper
()
component.go:46
MethodAdd
(message Envelope)
sse/sse.go:203
MethodAddData
(key string, value any)
component.go:32
MethodAddData
(key string, value any)
component.go:256
MethodAddError
(message string, vars ...map[string]any)
trigger.go:63
MethodAddGlobalData
(key string, value any)
component.go:34
MethodAddGlobalData
(key string, value any)
component.go:235
MethodAddInfo
(message string, vars ...map[string]any)
trigger.go:55
MethodAddTemplateFunction
(name string, function interface{})
component.go:35
MethodAddTemplateFunction
(name string, function interface{})
component.go:203
MethodAddTemplateFunctions
(funcs template.FuncMap)
component.go:36
MethodAddTemplateFunctions
(funcs template.FuncMap)
component.go:213
MethodAddWarning
(message string, vars ...map[string]any)
trigger.go:59
MethodAttach
(target string)
component.go:30
MethodAttach
Attach adds a template to the main component but doesn't pre-render it
component.go:194
MethodChan
()
sse/sse.go:49
MethodChild
(w http.ResponseWriter, r *http.Request)
examples/render/main.go:54
MethodClients
Clients method to list connected client IDs
sse/sse.go:146
MethodHandle
Handle sets up a new client and handles the connection.
sse/sse.go:111
MethodHeader
()
htmx_test.go:262
MethodHome
(w http.ResponseWriter, r *http.Request)
examples/tiktaktoe/tiktaktoe.go:46
MethodHome
(w http.ResponseWriter, r *http.Request)
examples/pokedex/pokedex.go:46
MethodHome
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:89
MethodHome
(w http.ResponseWriter, r *http.Request)
examples/render/main.go:39
MethodHome
(w http.ResponseWriter, r *http.Request)
examples/embedfs/main.go:42
MethodHome
(w http.ResponseWriter, r *http.Request)
examples/sse/sse.go:60
MethodID
()
sse/sse.go:48
MethodJustWrite
JustWrite writes the data to the connection as part of an HTTP reply.
handler.go:72
MethodJustWriteHTML
JustWriteHTML is a helper that writes HTML data to the connection.
handler.go:80
MethodJustWriteJSON
JustWriteJSON is a helper that writes json data to the connection.
handler.go:96
MethodJustWriteString
JustWriteString is a helper that writes string data to the connection.
handler.go:88
FunctionMiddleWare
MiddleWare is a middleware that adds the htmx request header to the context deprecated: htmx will retrieve the headers from the request by itself usin
middleware/middleware.go:12
MethodMove
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:105
MethodMustWrite
MustWrite writes the data to the connection as part of an HTTP reply.
handler.go:104
MethodMustWriteHTML
MustWriteHTML is a helper that writes HTML data to the connection.
handler.go:112
MethodMustWriteJSON
MustWriteJSON is a helper that writes json data to the connection.
handler.go:128
MethodMustWriteString
MustWriteString is a helper that writes string data to the connection.
handler.go:120
FunctionNewComponent
(templates ...string)
component.go:64
MethodNewSSE
NewSSE creates a new sse manager with the specified worker pool size.
htmx.go:60
MethodPause
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:125
MethodRender
Render renders the given templates with the given data it has all the default template functions and the additional template functions that are added
component.go:84
FunctionRenderPartial
RenderPartial returns true if the request is an HTMX request that is either boosted or a hx request, provided it is not a history restore request.
htmx.go:104
MethodReset
()
component.go:38
MethodReset
()
component.go:326
MethodReset
(w http.ResponseWriter, r *http.Request)
examples/tiktaktoe/tiktaktoe.go:90
MethodSSE
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:135
MethodSSE
(w http.ResponseWriter, r *http.Request)
examples/sse/sse.go:70
MethodSSEHandler
SSEHandler handles the server-sent events. this is a shortcut and is not the preferred way to handle sse.
htmx.go:70
MethodSSESend
SSESend sends a message to all connected clients.
htmx.go:79
MethodSearch
(w http.ResponseWriter, r *http.Request)
examples/pokedex/pokedex.go:50
MethodSend
Add adds a message to the history.
sse/sse.go:32
MethodSend
Send broadcasts a message to all connected clients.
sse/sse.go:106
MethodSend
(c Listener)
sse/sse.go:212
MethodSet
(w http.ResponseWriter, r *http.Request)
examples/tiktaktoe/tiktaktoe.go:63
MethodSetData
SetData adds data to the component
component.go:246
MethodSetGlobalData
(input map[string]any)
component.go:33
MethodSetGlobalData
(input map[string]any)
component.go:225
MethodSetLog
SetLog sets the logger for the htmx instance.
htmx.go:44
MethodSetURL
(url *url.URL)
component.go:266
MethodString
()
swap.go:23
MethodString
()
swap.go:41
MethodString
()
swap.go:222
MethodString
()
swap.go:236
MethodString
()
swap.go:251
MethodString
()
swap.go:263
MethodString
()
trigger.go:124
MethodString
()
request.go:60
MethodString
()
response.go:35
MethodString
String returns the message as a string.
sse/sse.go:67
FunctionTestFocusScroll
TestFocusScroll tests the FocusScroll method
swap_test.go:89
FunctionTestHxBoolToStr
(t *testing.T)
htmx_test.go:253
FunctionTestHxResponseKey_String
(t *testing.T)
htmx_test.go:181
FunctionTestHxStrToBool
(t *testing.T)
htmx_test.go:247
FunctionTestIgnoreTitle
TestIgnoreTitle tests the IgnoreTitle method
swap_test.go:75
FunctionTestNew
(t *testing.T)
htmx_test.go:37
FunctionTestNewTriggerMixed
(t *testing.T)
trigger_test.go:8
FunctionTestNewTriggerMixedNested
(t *testing.T)
trigger_test.go:45
FunctionTestNewTriggerSingle
(t *testing.T)
trigger_test.go:27
FunctionTestNoRouter
(t *testing.T)
htmx_test.go:130
FunctionTestScrollingScroll
TestScrollingScroll tests the ScrollingScroll method
swap_test.go:98
FunctionTestScrollingScrollBottom
TestScrollingScrollBottom tests the ScrollingScrollBottom method
swap_test.go:126
FunctionTestScrollingScrollTop
TestScrollingScrollTop tests the ScrollingScrollTop method
swap_test.go:116
FunctionTestScrollingShow
TestScrollingShow tests the ScrollingShow method
swap_test.go:107
FunctionTestScrollingShowBottom
TestScrollingShowBottom tests the ScrollingShowBottom method
swap_test.go:146
FunctionTestScrollingShowTop
TestScrollingShowTop tests the ScrollingShowTop method
swap_test.go:136
FunctionTestStopPolling
(t *testing.T)
htmx_test.go:195
← previousnext →101–200 of 228, ranked by callers