starutils

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KwArgsToStringDict

func KwArgsToStringDict(kwargs []starlark.Tuple) starlark.StringDict

KwArgsToStringDict -

func StringDictToGo

func StringDictToGo(stringDict starlark.StringDict) map[string]interface{}

StringDictToGo -

func ToGo

func ToGo(v starlark.Value) interface{}

ToGo -

func ToGoMap

func ToGoMap(v starlark.IterableMapping) map[string]interface{}

ToGoMap -

func ToGoStringList

func ToGoStringList(v starlark.Value) []string

ToGoStringList -

func ToStarlark

func ToStarlark(vi interface{}) starlark.Value

ToStarlark -

func UnwrapDict

func UnwrapDict(value starlark.Value) starlark.Value

UnwrapDict -

func WrapDict

func WrapDict(value starlark.Value) starlark.Value

WrapDict -

Types

type GoConvertible

type GoConvertible interface {
	ToGo() interface{}
}

GoConvertible -

type KwArgsParser

type KwArgsParser struct {
	KwArgs []starlark.Tuple
	Args   map[string]func(starlark.Value)
}

KwArgsParser -

func (*KwArgsParser) Arg

func (k *KwArgsParser) Arg(name string, extractor func(starlark.Value))

Arg-

func (*KwArgsParser) Parse

func (k *KwArgsParser) Parse() []starlark.Tuple

Parse -

Jump to

Keyboard shortcuts

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