Documentation
¶
Overview ¶
Package collection defines metadata helpers for bujo collections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMonthName ¶
IsMonthName reports whether value looks like "October 2025".
func MarshalList ¶
MarshalList serialises metadata slice.
func ValidateChildName ¶
ValidateChildName checks if a child collection name is valid for the parent type.
func ValidateTypeTransition ¶
ValidateTypeTransition ensures runtime changes obey rules. For now only forbids switching to unknown types.
Types ¶
type Meta ¶
Meta describes persisted per-collection metadata.
func UnmarshalList ¶
UnmarshalList deserialises metadata slice and upgrades legacy arrays of strings.
type Type ¶
type Type string
Type identifies how a collection should behave in the UI.
const ( // TypeGeneric is the default free-form collection. TypeGeneric Type = "generic" // TypeMonthly groups child month collections (e.g. Future log). TypeMonthly Type = "monthly" // TypeDaily groups day collections inside a month. TypeDaily Type = "daily" // TypeTracking is a numeric tracker collection. TypeTracking Type = "tracking" )
Click to show internal directories.
Click to hide internal directories.