Documentation ¶
Index ¶
- func FromStarlark(v starlark.Value, dst interface{}, optFuncs ...func(*fromOpts)) error
- func GenSymbol(_ *starlark.Thread, bi *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func ToStarlark(x interface{}, optFuncs ...func(*toOpts)) (starlark.Value, error)
- func WithFromNameConverter(nameCvt func(string) string) func(*fromOpts)
- func WithFromPrefix(p string) func(*fromOpts)
- func WithToNameConverter(nameCvt func(string) string) func(*toOpts)
- func WithToPrefix(p string) func(*toOpts)
- func WithToValueConverter(cvt func(interface{}) (interface{}, error)) func(*toOpts)
- func WithValCvt(cvt func(starlark.Value) (starlark.Value, error)) func(*fromOpts)
- type Symbol
- func (sym Symbol) CallInternal(thread *starlark.Thread, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
- func (sym Symbol) Freeze()
- func (sym Symbol) Hash() (uint32, error)
- func (sym Symbol) Name() string
- func (sym Symbol) String() string
- func (sym Symbol) Truth() starlark.Bool
- func (sym Symbol) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStarlark ¶
func ToStarlark ¶
func WithFromNameConverter ¶
func WithFromPrefix ¶
func WithFromPrefix(p string) func(*fromOpts)
func WithToNameConverter ¶
func WithToPrefix ¶
func WithToPrefix(p string) func(*toOpts)
func WithToValueConverter ¶
func WithToValueConverter(cvt func(interface{}) (interface{}, error)) func(*toOpts)
Types ¶
type Symbol ¶
type Symbol string
A symbol is a distinct value that acts as a constructor of "branded" struct instances, like a class symbol in Python or a "provider" in Bazel.
func (Symbol) CallInternal ¶
Click to show internal directories.
Click to hide internal directories.