Documentation
¶
Index ¶
- Constants
- func Add(content, section, entry string) (string, error)
- func CapFor(scope Scope) int
- func ContainsSecret(content string) bool
- func FormatSize(n int) string
- func GlobalPath() string
- func Load(workingDir string) string
- func LoadAt(globalPath, projectPath string) string
- func ProjectPath(workingDir string) string
- func Replace(content, oldText, newText string) (string, error)
- type File
- type Scope
Constants ¶
View Source
const ( GlobalMaxBytes = 8 * 1024 ProjectMaxBytes = 16 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func Add ¶ added in v0.73.0
Add appends entry under the "## section" heading, creating the section at the end of the file if missing. An empty section appends to the end of the file.
func ContainsSecret ¶
func FormatSize ¶ added in v0.73.0
func GlobalPath ¶
func GlobalPath() string
func ProjectPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.