blob

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

Documentation

Overview

Package blob handles binary blob encoding and decoding within scratchpad entries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsBlob

func ContainsBlob(entry string) bool

ContainsBlob returns true if the entry contains the blob separator.

Parameters:

  • entry: Scratchpad entry string

Returns:

  • bool: True if entry is a blob

func DisplayEntry

func DisplayEntry(entry string) string

DisplayEntry returns a display-friendly version of an entry.

Blob entries show "label [BLOB]", plain entries are returned as-is.

Parameters:

  • entry: Scratchpad entry string

Returns:

  • string: Human-readable entry representation

func MakeBlob

func MakeBlob(label string, data []byte) string

MakeBlob creates a blob entry string from a label and file data.

Parameters:

  • label: Blob label (filename)
  • data: Raw file content

Returns:

  • string: Formatted blob entry

func SplitBlob

func SplitBlob(entry string) (label string, d []byte, ok bool)

SplitBlob parses a blob entry into its label and decoded data.

Parameters:

  • entry: Scratchpad entry string

Returns:

  • label: Blob label (filename)
  • data: Decoded file content
  • ok: False for non-blob entries or malformed base64

Types

This section is empty.

Jump to

Keyboard shortcuts

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