Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode recursively decodes the starlark value v into an equivalent shaped Go value g, made up of only primitive types.
The following are the conversions made from Starlark types to Go types:
None → nil
Bool → bool
Int → int
Float → float64
String → string
List → []interface{}
Tuple → []interface{}
Dict → map[interface{}]interface{}{}
func DecodeKWargs ¶
DecodeKWargs decodes Starlark keyword arguments into the value pointed by g. If g is a struct, it uses its fields names by default to find the arguments and do the mapping. The struct field name can be redefined through struct tags prefixed with "starlark". Example:
type Repo struct {
SourceFile string `starlark:"file"`
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.