Documentation
¶
Index ¶
- Constants
- func IsSupportedMode(mode string) bool
- func Write(w io.Writer, mode string, v any, options TextOptions) error
- func WriteError(w io.Writer, err *ecerrors.AppError) int
- func WriteErrorMode(w io.Writer, err *ecerrors.AppError, mode string, options TextOptions) int
- func WriteJSON(w io.Writer, v any) error
- func WriteText(w io.Writer, v any, options TextOptions) error
- type TextOptions
Constants ¶
View Source
const ( ModeJSON = "json" ModeText = "text" )
Variables ¶
This section is empty.
Functions ¶
func IsSupportedMode ¶
func WriteErrorMode ¶
Types ¶
type TextOptions ¶
Click to show internal directories.
Click to hide internal directories.