exportimport

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package exportimport handles JSON round-trip, Markdown, and Obsidian vault export.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportJSON

func ExportJSON(store *storage.Store, project string) ([]byte, error)

ExportJSON exports the full graph as JSON.

func ExportMarkdown

func ExportMarkdown(store *storage.Store, project string) (string, error)

ExportMarkdown exports nodes as a Markdown document.

func ExportObsidian

func ExportObsidian(store *storage.Store, project, vaultDir string) (int, error)

ExportObsidian exports the graph as an Obsidian vault (one .md file per node, wikilinks for edges).

func ImportJSON

func ImportJSON(store *storage.Store, data []byte) (int, int, error)

ImportJSON imports a graph from JSON, skipping duplicates.

Types

type GraphExport

type GraphExport struct {
	Version    string          `json:"version"`
	ExportedAt time.Time       `json:"exported_at"`
	Nodes      []*storage.Node `json:"nodes"`
	Edges      []*storage.Edge `json:"edges"`
}

GraphExport is the full graph export format.

Jump to

Keyboard shortcuts

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