Skip to content

Go API Reference

This section contains the API documentation for the Go implementation of Logseq Doctor.

View on pkg.go.dev

Documentation

The documentation below is automatically generated from the Go source code using gomarkdoc and includes detailed API reference for all packages, including internal packages.

Packages

Browse the documentation for each package:

Command-line Interface

  • cmd - CLI implementation using Cobra

Public Packages

  • pkg/set - Generic set data structure

Internal Packages

Installation

To use the library in your Go project:

Bash
go get github.com/andreoliwa/logseq-doctor

To install the lqd binary:

Bash
# Using Homebrew (recommended)
brew install andreoliwa/formulae/logseq-doctor

# Or using go install
go install github.com/andreoliwa/logseq-doctor/cmd/lqd@latest

# Or download from releases
gh release download -R andreoliwa/logseq-doctor

Usage

Go
import (
    "github.com/andreoliwa/logseq-doctor/pkg/set"
)

// Use the set package
s := set.NewSet[string]()
s.Add("item")

Or use the CLI:

Bash
lqd --help