diff

package
v0.0.0-...-c5aa536 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(orgPath, mdPath string, st *state.State, format Format) (string, error)

Generate creates a diff between an org file and markdown file The format parameter determines how the diff is rendered

Types

type Format

type Format int

Format represents the output format for diffs

const (
	// FormatMarkdown renders diffs in markdown (default)
	FormatMarkdown Format = iota
	// FormatOrg renders diffs in org-mode (future feature)
	FormatOrg
)

func DefaultFormat

func DefaultFormat(orgPath, mdPath string) (Format, error)

DefaultFormat determines the default diff format based on sync direction Uses the destination format: org→md shows markdown, md→org shows org

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL