tools

package
v0.319.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(ctx context.Context, file string) (bool, error)

FileExists returns true if a file is existing. This is meant to be used with SourceFs related operations.

func IsTerminal added in v0.57.0

func IsTerminal() bool

func ValueAsBytes added in v0.88.0

func ValueAsBytes(v rel.Value) ([]byte, bool)

ValueAsBytes transform rel.Value to byte array. In arr.ai, all empty sets are the same and `""`, `{}` and `[]` will be parsed to rel.GenericSet.

func ValueAsString added in v0.88.0

func ValueAsString(v rel.Value) (string, bool)

ValueAsString transform rel.Value to string. In arr.ai, all empty sets are the same and `""`, `{}` and `[]` will be parsed to rel.GenericSet.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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