Help us shape the future of Go! Take the 2026 Go Developer Survey

convert

package
v1.233.0 Latest Latest
Warning

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

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

Documentation

Overview

Package convert shares Starlark value conversion and argument diagnostics between the runtime and independent standard-library bindings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgumentCause

func ArgumentCause(cause error, format string, args ...any) error

ArgumentCause additionally preserves an underlying conversion or parse error.

func Dictionary

func Dictionary(values map[string]any) (*starlark.Dict, error)

Dictionary copies native command inputs into an immutable Starlark dictionary with sorted keys, keeping iteration and printed output deterministic.

func InvalidArgument

func InvalidArgument(format string, args ...any) error

InvalidArgument classifies an argument error without duplicating sentinel text in the eventual script traceback.

func Sequence

func Sequence(value starlark.Value) ([]starlark.Value, error)

Sequence copies a Starlark list or tuple, rejecting other value types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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