Help us shape the future of Go! Take the 2026 Go Developer Survey

memorytools

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package memorytools provides portable memory tool bodies for project and user scopes over the mandatory versioned tool.MemoryStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectTools

func ProjectTools(store tool.MemoryStore) []tool.Tool

ProjectTools returns the project-scoped family.

func Register

func Register(cat *tool.Catalog, store tool.MemoryStore, scope Scope) error

Register adds the applicable family to cat.

func Tools

func Tools(store tool.MemoryStore, scope Scope) []tool.Tool

Tools returns the six memory tools for scope.

func UserTools

func UserTools(store tool.MemoryStore) []tool.Tool

UserTools returns the user-scoped family.

Types

type Scope

type Scope string

Scope identifies which independently-scoped store a tool family represents.

const (
	// ScopeProject selects the project memory store.
	ScopeProject Scope = "project"
	// ScopeUser selects the user memory store.
	ScopeUser Scope = "user"
)

Jump to

Keyboard shortcuts

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