createnote

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoContent      = errors.New("no note content given")
	ErrParentNotFound = errors.New("parent folder not found")
)

Functions

func Process

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

Types

type Input

type Input struct {
	Content  string   `json:"content"`
	ParentID string   `json:"parent_id" binding:"optional"`
	Tags     []string `json:"tags" binding:"optional"`
}

Input is a note as the user gave it: Tags are written into Content as #tags, the title comes from Content.

Jump to

Keyboard shortcuts

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