Documentation ¶
Index ¶
- func GetEnvOrDefault(key string, defaultValue string) string
- func InArray(val interface{}, array interface{}) (exists bool, index int)
- func Inertia(v interface{}) template.HTML
- func JsonEncode(v interface{}) template.JS
- func JsonEncodeRaw(v interface{}) string
- func MergeMaps(a map[string]interface{}, b map[string]interface{}) map[string]interface{}
- func Mix(path string, manifestPath ...string) template.HTML
- func WalkRecursive(values map[string]interface{}, fn func(interface{}))
- type Ziggy
- type ZiggyRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrDefault ¶
Get an environment variable or return the default value
func JsonEncode ¶
func JsonEncodeRaw ¶
func JsonEncodeRaw(v interface{}) string
func WalkRecursive ¶
func WalkRecursive(values map[string]interface{}, fn func(interface{}))
Iterate over a given map recursively and call the given func on every value
Types ¶
type Ziggy ¶
type Ziggy struct { BaseDomain string `json:"baseDomain"` BasePort int `json:"basePort"` BaseProtocol string `json:"baseProtocol"` BaseUrl string `json:"baseUrl"` Group string `json:"group"` Routes map[string]ZiggyRoute `json:"namedRoutes"` }
https://github.com/tightenco/ziggy base struct to export compatible Echo routes
type ZiggyRoute ¶
type ZiggyRoute struct { Uri string `json:"uri"` Methods []string `json:"methods"` Domain string `json:"domain"` }
A single https://github.com/tightenco/ziggy route
Click to show internal directories.
Click to hide internal directories.