Documentation
¶
Index ¶
Constants ¶
const ( Brainstorm = "brainstorm" Meeting = "meeting" Lecture = "lecture" Notes = "notes" )
Template name constants. Use these instead of string literals for compile-time safety.
Variables ¶
var ( BrainstormName = Name{/* contains filtered or unexported fields */} MeetingName = Name{/* contains filtered or unexported fields */} LectureName = Name{/* contains filtered or unexported fields */} NotesName = Name{/* contains filtered or unexported fields */} )
Pre-parsed template name constants for use in code. These avoid parsing overhead and provide compile-time safety.
var ErrUnknown = errors.New("unknown template")
ErrUnknown indicates an invalid template name was specified.
Functions ¶
Types ¶
type Name ¶ added in v0.3.0
type Name struct {
// contains filtered or unexported fields
}
Name represents a validated template name. Zero value is invalid and must not be used with Prompt(). Use ParseName to create from user input, or the pre-parsed constants.
func MustParseName ¶ added in v0.3.0
MustParseName parses a template name, panicking if invalid. Use only for compile-time constants and tests.
func ParseName ¶ added in v0.3.0
ParseName validates and parses a template name string. Returns ErrUnknown if the name is not recognized. Empty string returns an error (unlike Language where empty means auto-detect).
func (Name) IsZero ¶ added in v0.3.0
IsZero returns true if this is the zero value (no template set). Unlike Language.IsZero() which represents valid "auto-detect" mode, Name.IsZero() indicates no template was specified. In CLI commands, this means "skip restructuring" (raw transcript output). Calling Prompt() on a zero Name will panic.