Documentation
¶
Index ¶
- func IsJSON(ctx context.Context) bool
- func IsPlain(ctx context.Context) bool
- func KeyValuePayload(key string, value any) map[string]any
- func KeysPayload(keys []string) map[string]any
- func PathPayload(path string) map[string]any
- func WithMode(ctx context.Context, mode Mode) context.Context
- func WriteJSON(w io.Writer, v any) error
- func WritePlain(w io.Writer, headers []string, rows [][]string) error
- type Mode
- type ParseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeysPayload ¶
func PathPayload ¶
Types ¶
type Mode ¶
func FromContext ¶
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.