value

package
v0.10.15 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Helper functions for doing value conversions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SequenceToStringSlice added in v0.10.15

func SequenceToStringSlice(seq starlark.Sequence) ([]string, error)

func ValueOrSequenceToSlice

func ValueOrSequenceToSlice(v starlark.Value) []starlark.Value

If `v` is a `starlark.Sequence`, return a slice of its elements Otherwise, return it as a single-element slice For functions that take `Union[List[T], T]`

func ValueToAbsPath added in v0.10.15

func ValueToAbsPath(thread *starlark.Thread, v starlark.Value) (string, error)

Types

type PathMaker added in v0.10.15

type PathMaker interface {
	MakeLocalPath(relPath string) string
}

Jump to

Keyboard shortcuts

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