Documentation ¶
Index ¶
- Constants
- func Create(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- func Now(ctx context.Context, args ...object.Object) object.Object
- func Parse(ctx context.Context, args ...object.Object) object.Object
- func Tomorrow(ctx context.Context, args ...object.Object) object.Object
- func Yesterday(ctx context.Context, args ...object.Object) object.Object
- type Carbon
- func (c *Carbon) Cost() int
- func (c *Carbon) Equals(other object.Object) object.Object
- func (c *Carbon) GetAttr(name string) (object.Object, bool)
- func (c *Carbon) Inspect() string
- func (c *Carbon) Interface() interface{}
- func (c *Carbon) IsTruthy() bool
- func (c *Carbon) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (c *Carbon) SetAttr(name string, value object.Object) error
- func (c *Carbon) String() string
- func (c *Carbon) Type() object.Type
- func (c *Carbon) Value() carbon.Carbon
Constants ¶
View Source
const CARBON object.Type = "carbon.carbon"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Carbon ¶
type Carbon struct {
// contains filtered or unexported fields
}
func (*Carbon) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.