Documentation ¶
Index ¶
- func GetEnv(key string) string
- func GetRecursiveFiles(fsys fs.FS, root string, filterFunction StringFilterFunction) ([]string, error)
- func OobSwapWrap(id, html string) string
- func RenderedTemplateString(templatePath string, data map[string]interface{}) (string, error)
- func SliceContains[T comparable](list []T, item T) bool
- type StringFilterFunction
- type WebsocketHeaders
- type WebsocketMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRecursiveFiles ¶
func GetRecursiveFiles(fsys fs.FS, root string, filterFunction StringFilterFunction) ([]string, error)
GetRecursiveFiles gets all files in a directory recursively
func OobSwapWrap ¶
func RenderedTemplateString ¶
func SliceContains ¶
func SliceContains[T comparable](list []T, item T) bool
SliceContains checks if a slice contains an item
Types ¶
type StringFilterFunction ¶
type WebsocketHeaders ¶
type WebsocketMessage ¶
type WebsocketMessage struct { Data map[string]string `json:"-"` Headers WebsocketHeaders `json:"HEADERS"` }
func DeserializeHtmxWebsocketMessage ¶
func DeserializeHtmxWebsocketMessage(jsonStr string) (*WebsocketMessage, error)
Click to show internal directories.
Click to hide internal directories.