util

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeClaudeProjectPath

func DecodeClaudeProjectPath(encoded string) string

func EncodeClaudeProjectPath

func EncodeClaudeProjectPath(absPath string) string

func FileMtime

func FileMtime(path string) (time.Time, error)

func FirstUserSnippet

func FirstUserSnippet(text string, max int) string

func JSONMarshal

func JSONMarshal(v any) ([]byte, error)

func JSONUnmarshal

func JSONUnmarshal(data []byte, v any) error

func MatchID

func MatchID(id, query string) bool

func ParseTime

func ParseTime(s string) time.Time

func ReadJSONLLines

func ReadJSONLLines(path string, maxLines int, fn func(line []byte) error) error

func TailJSONLLines

func TailJSONLLines(path string, maxLines int) ([][]byte, error)

func TildePath added in v0.1.1

func TildePath(p string) string

TildePath replaces the user home directory prefix with ~.

Types

This section is empty.

Jump to

Keyboard shortcuts

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