package
0.0.0-20231231064332-3b4c58ba0634
Repository: https://github.com/theartefak/inertia-echo.git
Documentation: pkg.go.dev
# Functions
GetEnvOrDefault gets an environment variable or returns the default value.
InArray checks if a given value exists in the given array.
Inertia converts a Go value to an Inertia template HTML string.
JsonEncode encodes a Go value to a JSON string and returns it as a template JS.
JsonEncodeRaw encodes a Go value to a raw JSON string.
MergeMaps merges two maps, overriding existing keys from b into a new map.
NewZiggy creates a Ziggy struct based on an Echo instance and page information.
Vite resolves the asset path using the manifest file and returns it as template HTML.
WalkRecursive iterates over a given map recursively and calls the given func on every value.
# Structs
Ziggy is a struct to export compatible Echo routes for https://github.com/tightenco/ziggy.
ZiggyRoute represents a single route for https://github.com/tightenco/ziggy.