utils

package
v1.6.28 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 4 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

Jump to

Keyboard shortcuts

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