scratch

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package scratch is the Scratch module: quick notes, to-dos, ideas and follow-ups as small items, kept in the module's own store and, with caster_sync on, in Caster as Basalisk keeps them (caster://scratch/<id>, sync.go).

It is also the smallest complete example of a Surface module: a view, a command, agent tools, a local store, live settings and a context slot, on the module contract alone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ref added in v0.4.0

func Ref(id string) string

Ref is the Caster ref an item is kept under.

Types

type Item

type Item struct {
	ID   string `json:"id"`
	Text string `json:"text"`
	// Kind is note, todo, idea or followup.
	Kind    string `json:"kind"`
	Done    bool   `json:"done"`
	Tags    string `json:"tags,omitempty"`
	Created string `json:"created"`
	Updated string `json:"updated"`
	// CasterRef is where the item is kept in Caster once written there (sync.go).
	CasterRef string `json:"caster_ref,omitempty"`
}

Item is one thing jotted down.

Jump to

Keyboard shortcuts

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