utils

package
v1.9.19 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const Indentation = `  `

Variables

This section is empty.

Functions

func Example

func Example(s string) string

func IsNetworkError

func IsNetworkError(err error) bool

func MapSlice

func MapSlice[Input any, Output any](inputs []Input, f func(Input) Output) []Output

MapSlice should be replaced with an external package once we find a reliable one

func ParseErrorToString

func ParseErrorToString(err interface{}) string

func ValidateStdinPathArgument

func ValidateStdinPathArgument(paths []string) error

Types

type OSInfo

type OSInfo struct {
	OS              string
	PlatformVersion string
	KernelVersion   string
}

func NewOSInfo

func NewOSInfo() *OSInfo

type OpenBrowserContext added in v1.6.48

type OpenBrowserContext struct {
	UrlOpener URLOpener
}

func (*OpenBrowserContext) OpenBrowser added in v1.6.48

func (o *OpenBrowserContext) OpenBrowser(url string) error

type URLOpener added in v1.6.48

type URLOpener interface {
	OpenURL(url string) error
}

Jump to

Keyboard shortcuts

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