Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/donseba/go-htmx
/ functions
Functions
228 in github.com/donseba/go-htmx
⨍
Functions
228
◇
Types & classes
42
↓ 1 callers
Method
injectGlobalData
(input map[string]any)
component.go:42
↓ 1 callers
Method
isWrapped
()
component.go:45
↓ 1 callers
Function
mainContent
()
examples/snake/snake.go:151
↓ 1 callers
Function
moveSnake
(game *SnakeGame)
examples/snake/game.go:5
↓ 1 callers
Function
newHistory
(maxSize int)
sse/sse.go:196
↓ 1 callers
Method
partials
partials returns the partials
component.go:291
↓ 1 callers
Function
randStringRunes
(n int)
examples/snake/snake.go:143
↓ 1 callers
Function
randStringRunes
(n int)
examples/sse/sse.go:78
↓ 1 callers
Method
register
register adds a client to the manager.
sse/sse.go:182
↓ 1 callers
Method
renderNamed
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 callers
Method
startWorkers
startWorkers starts worker goroutines for message broadcasting.
sse/sse.go:159
↓ 1 callers
Method
target
()
component.go:47
↓ 1 callers
Method
unregister
unregister removes a client from the manager.
sse/sse.go:187
↓ 1 callers
Method
wrapOutput
wrapOutput recursively wraps the output in its parent components
handler.go:288
↓ 1 callers
Method
wrapper
()
component.go:46
Method
Add
(message Envelope)
sse/sse.go:203
Method
AddData
(key string, value any)
component.go:32
Method
AddData
(key string, value any)
component.go:256
Method
AddError
(message string, vars ...map[string]any)
trigger.go:63
Method
AddGlobalData
(key string, value any)
component.go:34
Method
AddGlobalData
(key string, value any)
component.go:235
Method
AddInfo
(message string, vars ...map[string]any)
trigger.go:55
Method
AddTemplateFunction
(name string, function interface{})
component.go:35
Method
AddTemplateFunction
(name string, function interface{})
component.go:203
Method
AddTemplateFunctions
(funcs template.FuncMap)
component.go:36
Method
AddTemplateFunctions
(funcs template.FuncMap)
component.go:213
Method
AddWarning
(message string, vars ...map[string]any)
trigger.go:59
Method
Attach
(target string)
component.go:30
Method
Attach
Attach adds a template to the main component but doesn't pre-render it
component.go:194
Method
Chan
()
sse/sse.go:49
Method
Child
(w http.ResponseWriter, r *http.Request)
examples/render/main.go:54
Method
Clients
Clients method to list connected client IDs
sse/sse.go:146
Method
Handle
Handle sets up a new client and handles the connection.
sse/sse.go:111
Method
Header
()
htmx_test.go:262
Method
Home
(w http.ResponseWriter, r *http.Request)
examples/tiktaktoe/tiktaktoe.go:46
Method
Home
(w http.ResponseWriter, r *http.Request)
examples/pokedex/pokedex.go:46
Method
Home
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:89
Method
Home
(w http.ResponseWriter, r *http.Request)
examples/render/main.go:39
Method
Home
(w http.ResponseWriter, r *http.Request)
examples/embedfs/main.go:42
Method
Home
(w http.ResponseWriter, r *http.Request)
examples/sse/sse.go:60
Method
ID
()
sse/sse.go:48
Method
JustWrite
JustWrite writes the data to the connection as part of an HTTP reply.
handler.go:72
Method
JustWriteHTML
JustWriteHTML is a helper that writes HTML data to the connection.
handler.go:80
Method
JustWriteJSON
JustWriteJSON is a helper that writes json data to the connection.
handler.go:96
Method
JustWriteString
JustWriteString is a helper that writes string data to the connection.
handler.go:88
Function
MiddleWare
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
Method
Move
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:105
Method
MustWrite
MustWrite writes the data to the connection as part of an HTTP reply.
handler.go:104
Method
MustWriteHTML
MustWriteHTML is a helper that writes HTML data to the connection.
handler.go:112
Method
MustWriteJSON
MustWriteJSON is a helper that writes json data to the connection.
handler.go:128
Method
MustWriteString
MustWriteString is a helper that writes string data to the connection.
handler.go:120
Function
NewComponent
(templates ...string)
component.go:64
Method
NewSSE
NewSSE creates a new sse manager with the specified worker pool size.
htmx.go:60
Method
Pause
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:125
Method
Render
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
Function
RenderPartial
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
Method
Reset
()
component.go:38
Method
Reset
()
component.go:326
Method
Reset
(w http.ResponseWriter, r *http.Request)
examples/tiktaktoe/tiktaktoe.go:90
Method
SSE
(w http.ResponseWriter, r *http.Request)
examples/snake/snake.go:135
Method
SSE
(w http.ResponseWriter, r *http.Request)
examples/sse/sse.go:70
Method
SSEHandler
SSEHandler handles the server-sent events. this is a shortcut and is not the preferred way to handle sse.
htmx.go:70
Method
SSESend
SSESend sends a message to all connected clients.
htmx.go:79
Method
Search
(w http.ResponseWriter, r *http.Request)
examples/pokedex/pokedex.go:50
Method
Send
Add adds a message to the history.
sse/sse.go:32
Method
Send
Send broadcasts a message to all connected clients.
sse/sse.go:106
Method
Send
(c Listener)
sse/sse.go:212
Method
Set
(w http.ResponseWriter, r *http.Request)
examples/tiktaktoe/tiktaktoe.go:63
Method
SetData
SetData adds data to the component
component.go:246
Method
SetGlobalData
(input map[string]any)
component.go:33
Method
SetGlobalData
(input map[string]any)
component.go:225
Method
SetLog
SetLog sets the logger for the htmx instance.
htmx.go:44
Method
SetURL
(url *url.URL)
component.go:266
Method
String
()
swap.go:23
Method
String
()
swap.go:41
Method
String
()
swap.go:222
Method
String
()
swap.go:236
Method
String
()
swap.go:251
Method
String
()
swap.go:263
Method
String
()
trigger.go:124
Method
String
()
request.go:60
Method
String
()
response.go:35
Method
String
String returns the message as a string.
sse/sse.go:67
Function
TestFocusScroll
TestFocusScroll tests the FocusScroll method
swap_test.go:89
Function
TestHxBoolToStr
(t *testing.T)
htmx_test.go:253
Function
TestHxResponseKey_String
(t *testing.T)
htmx_test.go:181
Function
TestHxStrToBool
(t *testing.T)
htmx_test.go:247
Function
TestIgnoreTitle
TestIgnoreTitle tests the IgnoreTitle method
swap_test.go:75
Function
TestNew
(t *testing.T)
htmx_test.go:37
Function
TestNewTriggerMixed
(t *testing.T)
trigger_test.go:8
Function
TestNewTriggerMixedNested
(t *testing.T)
trigger_test.go:45
Function
TestNewTriggerSingle
(t *testing.T)
trigger_test.go:27
Function
TestNoRouter
(t *testing.T)
htmx_test.go:130
Function
TestScrollingScroll
TestScrollingScroll tests the ScrollingScroll method
swap_test.go:98
Function
TestScrollingScrollBottom
TestScrollingScrollBottom tests the ScrollingScrollBottom method
swap_test.go:126
Function
TestScrollingScrollTop
TestScrollingScrollTop tests the ScrollingScrollTop method
swap_test.go:116
Function
TestScrollingShow
TestScrollingShow tests the ScrollingShow method
swap_test.go:107
Function
TestScrollingShowBottom
TestScrollingShowBottom tests the ScrollingShowBottom method
swap_test.go:146
Function
TestScrollingShowTop
TestScrollingShowTop tests the ScrollingShowTop method
swap_test.go:136
Function
TestStopPolling
(t *testing.T)
htmx_test.go:195
← previous
next →
101–200 of 228, ranked by callers