Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶ added in v0.4.0
type Feature struct { Name string BeforeAction FeatureFunc AfterAction FeatureFunc }
type FeatureApplyError ¶ added in v0.4.0
type FeatureApplyError struct {
// contains filtered or unexported fields
}
func (*FeatureApplyError) Error ¶ added in v0.4.0
func (e *FeatureApplyError) Error() string
func (*FeatureApplyError) Unwrap ¶ added in v0.4.0
func (e *FeatureApplyError) Unwrap() error
type FeatureApplyMode ¶ added in v0.4.0
type FeatureApplyMode string
var ( FeatureApplyBefore FeatureApplyMode = "before" FeatureApplyAfter FeatureApplyMode = "after" )
type FeatureFunc ¶ added in v0.4.0
type FeatureList ¶ added in v0.4.0
type FeatureList []Feature
func (FeatureList) ApplyFeatures ¶ added in v0.4.0
func (fl FeatureList) ApplyFeatures(input []byte, mode FeatureApplyMode) ([]byte, error)
type LineBreakStyle ¶ added in v0.5.0
type LineBreakStyle string
const ( LineBreakStyleLF LineBreakStyle = "lf" LineBreakStyleCRLF LineBreakStyle = "crlf" )
func (LineBreakStyle) Separator ¶ added in v0.5.0
func (s LineBreakStyle) Separator() (string, error)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewFormatterRegistry ¶
func (*Registry) GetDefaultFactory ¶
type UnsupportedLineBreakError ¶ added in v0.5.0
type UnsupportedLineBreakError struct {
// contains filtered or unexported fields
}
func (UnsupportedLineBreakError) Error ¶ added in v0.5.0
func (e UnsupportedLineBreakError) Error() string
Click to show internal directories.
Click to hide internal directories.