Documentation ¶
Index ¶
- func Export(feature []byte, opts options.Options, wr io.Writer) error
- func ExportChanged(feature []byte, existingFeature []byte, opts options.Options, wr io.Writer) (changed bool, err error)
- func Format(feature []byte, opts options.Options) ([]byte, error)
- func Prepare(feature []byte, opts options.Options) ([]byte, error)
- type Feature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportChanged ¶ added in v0.3.2
func ExportChanged(feature []byte, existingFeature []byte, opts options.Options, wr io.Writer) (changed bool, err error)
ExportChanged returns a boolean which indicates whether the file was changed by comparing it to the `existingFeature` byte slice, before the lastmodified timestamp is incremented. If the `feature` is identical to `existingFeature` it doesn't write to the `io.Writer`.
Types ¶
Click to show internal directories.
Click to hide internal directories.