Documentation
¶
Index ¶
- func UnmarshalADF([]byte, ...Option) ([]byte, error)
- func UnmarshalADFTo(io.Writer, []byte, ...Option) error
- type CodeFenceStyle
- type Error
- type ErrorKind
- type ExtensionBlockHandler
- type ExtensionInlineHandler
- type HardBreakStyle
- type Option
- func WithAllowUnsupportedNodes(bool) Option
- func WithBuiltInSchemaValidation(bool) Option
- func WithCodeFenceStyle(CodeFenceStyle) Option
- func WithExtensionBlockHandler(ExtensionBlockHandler) Option
- func WithExtensionInlineHandler(ExtensionInlineHandler) Option
- func WithHardBreakStyle(HardBreakStyle) Option
- func WithSchemaValidator(func([]byte) error) Option
- func WithStrictSchema(bool) Option
- func WithUnsupportedBlockHandler(UnsupportedBlockHandler) Option
- func WithUnsupportedInlineHandler(UnsupportedInlineHandler) Option
- type UnsupportedBlockHandler
- type UnsupportedInlineHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodeFenceStyle ¶
type CodeFenceStyle string
type ErrorKind ¶
type ErrorKind string
const ( ErrKindInvalidRoot ErrorKind = "invalid_root" ErrKindInvalidJSON ErrorKind = "invalid_json" ErrKindMissingType ErrorKind = "missing_type" ErrKindUnsupportedNode ErrorKind = "unsupported_node" ErrKindUnsupportedInline ErrorKind = "unsupported_inline" ErrKindUnsupportedMark ErrorKind = "unsupported_mark" ErrKindInvalidAttr ErrorKind = "invalid_attr" ErrKindInvalidMark ErrorKind = "invalid_mark" ErrKindInvalidMarkCombo ErrorKind = "invalid_mark_combo" ErrKindInvalidStructure ErrorKind = "invalid_structure" ErrKindInvalidText ErrorKind = "invalid_text" )
type ExtensionBlockHandler ¶
type ExtensionInlineHandler ¶
type HardBreakStyle ¶
type HardBreakStyle string
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCodeFenceStyle ¶
func WithCodeFenceStyle(CodeFenceStyle) Option
func WithExtensionBlockHandler ¶
func WithExtensionBlockHandler(ExtensionBlockHandler) Option
func WithExtensionInlineHandler ¶
func WithExtensionInlineHandler(ExtensionInlineHandler) Option
func WithHardBreakStyle ¶
func WithHardBreakStyle(HardBreakStyle) Option
func WithSchemaValidator ¶
func WithStrictSchema ¶
func WithUnsupportedBlockHandler ¶
func WithUnsupportedBlockHandler(UnsupportedBlockHandler) Option
func WithUnsupportedInlineHandler ¶
func WithUnsupportedInlineHandler(UnsupportedInlineHandler) Option
type UnsupportedBlockHandler ¶
Click to show internal directories.
Click to hide internal directories.