args

package
v0.0.0-...-e600795 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package args contains various helpers for extracting/processing starlark arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessArgs

func ProcessArgs(args starlark.Tuple, kwargs []starlark.Tuple, ctx core.Context,
	target ProcessArgsTarget) error

ProcessArgs processes kwargs for the given target. Currently, it always requires that all arguments be kwargs.

Types

type ProcessArgsTarget

type ProcessArgsTarget interface {
	DidProcessArgs(ctx core.Context) error
}

ProcessArgsTarget is implemented by structs that are targets for ProcessArgs. ProcessArgs will fill in a target's fields based on its field tags, and once complete it will call DidProcessArgs.

Jump to

Keyboard shortcuts

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