Documentation ¶
Index ¶
- func Decode(ctx context.Context, args ...object.Object) object.Object
- func Encode(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- type Image
- func (img *Image) Bounds() *object.Map
- func (img *Image) Compare(other object.Object) (int, error)
- func (img *Image) Cost() int
- func (img *Image) Dimensions() *object.Map
- func (img *Image) Equals(other object.Object) object.Object
- func (img *Image) GetAttr(name string) (object.Object, bool)
- func (img *Image) Inspect() string
- func (img *Image) Interface() interface{}
- func (img *Image) IsTruthy() bool
- func (img *Image) MarshalJSON() ([]byte, error)
- func (img *Image) Read(p []byte) (int, error)
- func (img *Image) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (img *Image) SetAttr(name string, value object.Object) error
- func (img *Image) Size() (int, int)
- func (img *Image) String() string
- func (img *Image) Type() object.Type
- func (img *Image) Value() image.Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) Dimensions ¶
func (*Image) MarshalJSON ¶
func (*Image) Read ¶
Read implements the io.Reader interface, by encoding the image to its default or original encoding.
func (*Image) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.