Documentation
¶
Index ¶
- func ApiPanicHandler(w http.ResponseWriter, err any)
- func GetGlobalCORS() (bool, []string)
- func Key(key string) string
- func MatchPreferredLanguage(r *http.Request) *message.Printer
- func RawPanicHandler(w http.ResponseWriter, err any)
- func Segment(text string) []string
- func SetGlobalCORS(enable bool, origin ...string)
- func WithLangSpecifier(lang string)
- type PanicHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiPanicHandler ¶
func ApiPanicHandler(w http.ResponseWriter, err any)
func RawPanicHandler ¶
func RawPanicHandler(w http.ResponseWriter, err any)
Types ¶
type PanicHandler ¶
type PanicHandler func(http.ResponseWriter, any)
Click to show internal directories.
Click to hide internal directories.