Documentation ¶
Index ¶
- Variables
- func DecodeValue(value interface{}) starlark.Value
- func InstallAllExampleModule(d starlark.StringDict)
- func ToValue(value interface{}) starlark.Value
- type E
- type Greet
- type M
- type UserValue
- func (u *UserValue) Attr(name string) (starlark.Value, error)
- func (u *UserValue) AttrNames() (ret []string)
- func (u *UserValue) CallInternal(thread *starlark.Thread, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
- func (u *UserValue) Freeze()
- func (u *UserValue) Get(k starlark.Value) (v starlark.Value, found bool, err error)
- func (u *UserValue) Hash() (uint32, error)
- func (u *UserValue) Index(i int) starlark.Value
- func (u *UserValue) Items() (ret []starlark.Tuple)
- func (u *UserValue) Iterate() starlark.Iterator
- func (u *UserValue) Len() int
- func (u *UserValue) Name() string
- func (u *UserValue) SetField(name string, val starlark.Value) error
- func (u *UserValue) SetIndex(index int, v starlark.Value) error
- func (u *UserValue) SetKey(k, v starlark.Value) error
- func (u *UserValue) Slice(start, end, step int) starlark.Value
- func (u *UserValue) String() string
- func (u *UserValue) Truth() starlark.Bool
- func (u *UserValue) Type() string
Constants ¶
This section is empty.
Variables ¶
View Source
var GreetModule = &starlarkstruct.Module{ Name: "greet", Members: starlark.StringDict{ "new": ToValue(NewGreet), "default": ToValue(&Greet{}), "newWithName": ToValue(NewGreetWith), }, }
Functions ¶
func DecodeValue ¶
only for decode, userValue not included in return types
func InstallAllExampleModule ¶
func InstallAllExampleModule(d starlark.StringDict)
Types ¶
type UserValue ¶
type UserValue struct {
// contains filtered or unexported fields
}
func NewUserValue ¶
func (*UserValue) CallInternal ¶
Click to show internal directories.
Click to hide internal directories.