parse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package parse splits raw scratchpad content into individual entry lines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEntries

func FormatEntries(entries []string) []byte

FormatEntries joins entries with newlines and adds a trailing newline.

Parameters:

  • entries: The scratchpad entries to serialize

Returns:

  • []byte: Newline-delimited content, or nil if entries is empty

func ParseEntries

func ParseEntries(data []byte) []string

ParseEntries splits raw bytes into entry lines, filtering empty lines.

Parameters:

  • data: Raw scratchpad content

Returns:

  • []string: Non-empty lines, or nil if data is empty

Types

This section is empty.

Jump to

Keyboard shortcuts

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