tools

package
v0.127.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Arguments []string

Functions

func FileExists

func FileExists(file string) bool

FileExists returns true if a file is existing.

func IsTerminal added in v0.57.0

func IsTerminal() bool

func SetArgs added in v0.57.0

func SetArgs(c *cli.Context)

SetArgs set context arguments, for example command line `arrai -d r file.arrai arg1 arg2 arg3` will save `file.arrai arg1 arg2 arg3` as a slice to Arguments.

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