util

package
v0.6.312 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64OrReturnSelf added in v0.6.68

func DecodeBase64OrReturnSelf(maybeBase64 string) []byte

func DoesPathExist added in v0.6.72

func DoesPathExist(path string) bool

func InstallCursorExtension added in v0.6.311

func InstallCursorExtension(extensionID string) error

func InstallVscodeExtension added in v0.6.263

func InstallVscodeExtension(extensionID string) error

func InstallWindsurfExtension added in v0.6.312

func InstallWindsurfExtension(extensionID string) error

func IsCursorExtensionInstalled added in v0.6.311

func IsCursorExtensionInstalled(extensionID string) (bool, error)

func IsGitURL added in v0.6.72

func IsGitURL(u string) bool

func IsSingularOrPlural

func IsSingularOrPlural(check, noun string) bool

checks if noun or pulural version of noun (checks if s at end)

func IsVSCodeExtensionInstalled added in v0.6.91

func IsVSCodeExtensionInstalled(extensionID string) (bool, error)

func IsWindsurfExtensionInstalled added in v0.6.312

func IsWindsurfExtensionInstalled(extensionID string) (bool, error)

func MapAppend

func MapAppend(m map[string]interface{}, n ...map[string]interface{}) map[string]interface{}

func RemoveFileExtenstion added in v0.6.68

func RemoveFileExtenstion(path string) string

func TryRunCursorCommand added in v0.6.311

func TryRunCursorCommand(args []string, extraPaths ...string) ([]byte, error)

func TryRunVsCodeCommand added in v0.6.263

func TryRunVsCodeCommand(args []string, extraPaths ...string) ([]byte, error)

func TryRunWindsurfCommand added in v0.6.312

func TryRunWindsurfCommand(args []string, extraPaths ...string) ([]byte, error)

Types

type RunEResult added in v0.6.68

type RunEResult struct {
	// contains filtered or unexported fields
}

func RunEAsync added in v0.6.68

func RunEAsync(calls ...func() error) RunEResult

func (RunEResult) Await added in v0.6.68

func (r RunEResult) Await() error

Jump to

Keyboard shortcuts

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