importnotes

package
v0.0.0-...-4d14c86 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(ctx context.Context, db bun.IDB, store silo.Store, input Input) *run

Process imports markdown files as notes and their directories as folders, all or nothing: a folder name already taken stops it. Titles, #tags and [[links]] come from the text, as for any note; the images a note cites by a relative path or by ![[name]] become files of the account, exportnotes.FilesDir no folder.

Types

type Input

type Input struct {
	Dir      fs.FS
	ParentID string
}

Input is what to import: every directory and .md file of Dir, into the folder ParentID ("" = the root).

type Result

type Result struct {
	Folders int `json:"folders"`
	Notes   int `json:"notes"`
}

Result counts what was created.

Jump to

Keyboard shortcuts

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