Documentation ¶
Index ¶
- Constants
- func Apply(format Format, input any, opts Options) (string, error)
- func ChangesAsText(changes *diff.Changes, opts Options) string
- func JQ(data interface{}, opts ...any) (string, error)
- func JSON(data any) (string, error)
- func Text(input any, opts ...any) (string, error)
- func YAML(data interface{}) (string, error)
- type Format
- type InvalidFormatError
- type Options
- type UnknownFormatError
- type UnknownInputTypeError
Constants ¶
View Source
const ( JSONFormat = "json" YAMLFormat = "yaml" TextFormat = "text" JQFormat = "jq" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvalidFormatError ¶ added in v0.0.5
type InvalidFormatError struct {
Format string
}
func (*InvalidFormatError) Error ¶ added in v0.0.5
func (e *InvalidFormatError) Error() string
type UnknownFormatError ¶ added in v0.0.5
type UnknownFormatError struct {
Format string
}
func (*UnknownFormatError) Error ¶ added in v0.0.5
func (e *UnknownFormatError) Error() string
type UnknownInputTypeError ¶ added in v0.0.5
type UnknownInputTypeError struct {
Type string
}
func (*UnknownInputTypeError) Error ¶ added in v0.0.5
func (e *UnknownInputTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.