memory

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GlobalMaxBytes  = 8 * 1024
	ProjectMaxBytes = 16 * 1024
)

Variables

This section is empty.

Functions

func ContainsSecret

func ContainsSecret(content string) bool

func GlobalPath

func GlobalPath() string

func Load

func Load(workingDir string) string

func LoadAt

func LoadAt(globalPath, projectPath string) string

func ProjectPath

func ProjectPath(workingDir string) string

Types

type File

type File struct {
	Path    string
	Scope   Scope
	Exists  bool
	Content string
}

func Files

func Files(workingDir string) (global, project File)

func FilesAt

func FilesAt(globalPath, projectPath string) (global, project File)

type Scope

type Scope string
const (
	ScopeGlobal  Scope = "Global"
	ScopeProject Scope = "Project"
)

Jump to

Keyboard shortcuts

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